/* ==========================================================================
   CMO LATAM AWARDS 2026 · HOJA DE ESTILOS GLOBAL
   --------------------------------------------------------------------------
   1. Variables y base
   2. Layout general
   3. Header y menú
   4. Hero y contador
   5. Tipografía y contenido
   6. Home (cierre, jurado, galería, sponsors, partners)
   7. Footer
   8. Páginas: contacto, galería, jurado, shortlist, ganadores, legales
   9. Responsivo (todas las media queries, por breakpoint)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES Y BASE
   ========================================================================== */

:root {
    --gold: #bfa15f;          /* dorado de textos, líneas y menú */
    --gold-bright: #d4af37;   /* dorado oficial (banners, botones) */
    --black: #000;
    --text: #333;
    --muted: #666;
    --line: #eee;
    --paper: #f9f9f9;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
    overflow-x: clip;               /* evita scroll horizontal por los bloques de 100vw */
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
}

button, input, textarea { font-family: inherit; }

b, strong { font-weight: 700; }

/* Texto solo para SEO / lectores de pantalla */
.visually-hidden {
    position: absolute;
    left: -9999px;
}


/* ==========================================================================
   2. LAYOUT GENERAL
   ========================================================================== */

.page-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1300px;              /* 1200px de contenido + 50px de padding por lado */
    margin: 0 auto;
    padding: 60px 50px;
}

/* Bloques que rompen el contenedor y ocupan todo el ancho de la pantalla */
.gray-band,
.sponsors-bg {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.gray-band {
    margin-top: 40px;
    padding: 20px 0;
    background-color: var(--paper);
}

.gray-band-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.sponsors-bg {
    padding: 60px 20px;
    background: url('../img/fondo_sponsors.jpg') center / cover no-repeat;
}


/* ==========================================================================
   3. HEADER Y MENÚ
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 25px 40px;
}

.header-logo {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.header-logo img {
    display: block;
    width: auto;
    height: 80px;
}

.navbar {
    position: relative;
    text-align: center;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--gold);
    cursor: pointer;
}

.navbar ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.navbar a {
    display: inline-block;
    padding: 8px 4px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover { color: var(--gold); }

/* Enlaces largos que se parten en dos líneas en escritorio */
.navbar a.nav-wrap { max-width: 120px; }

/* Enlace activo (menú y footer) */
.active-link {
    color: var(--gold) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--gold);
}


/* ==========================================================================
   4. HERO Y CONTADOR
   ========================================================================== */

.hero-banner {
    position: relative;
    background: var(--black);
    line-height: 0;
}

.banner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hero tipo portada (home): altura proporcional al ancho, la imagen se recorta */
.hero-cover a,
.hero-cover picture { display: block; }

.hero-cover a { height: clamp(280px, 33.2vw, 550px); }   /* 33.2vw = proporción 1961x651 */
.hero-cover picture { height: 100%; }

.hero-cover .banner-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contador sobre el banner */
#cmo-countdown-overlay {
    position: absolute;
    right: 5%;
    bottom: 9%;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.cd-unit {
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

.cd-val {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
}

.cd-lbl {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ==========================================================================
   5. TIPOGRAFÍA Y CONTENIDO
   ========================================================================== */

h1 {
    margin-bottom: 5px;
    color: var(--black);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    text-align: center;
    text-transform: uppercase;
}

/* Subtítulo con líneas doradas a los lados */
.subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 50px;
    color: var(--gold);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.subtitle::before,
.subtitle::after {
    content: "";
    flex: 0 0 auto;
    width: 60px;
    height: 2px;
    background-color: var(--gold);
}

.year-black { color: var(--black); }

p, .privacy-content li {
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
    hyphens: none !important;
}

.reg-link,
.privacy-content a,
.sub-text a {
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
}

/* Secciones de contenido */
.sub-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
}

.thumbnail img {
    width: 180px;
    height: auto;
    padding: 10px;
    border: 1px solid var(--line);
}

.sub-text { flex: 1; }
.note-section { margin-top: 30px; }

#survey-container {
    width: 100%;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.calendar-event { margin-bottom: 70px; }
.event-header { margin-bottom: 20px; text-align: center; }
.event-icon { display: block; margin-bottom: 15px; color: var(--gold); font-size: 48px; }
.event-date { display: block; margin-bottom: 5px; color: var(--black); font-size: 18px; font-weight: 700; }
.event-title { color: var(--gold); font-size: 20px; font-weight: 700; text-transform: uppercase; }
.icon-gold { color: var(--gold-bright); }

.event-description {
    max-width: 90%;
    margin: 0 auto;
}

.divider {
    width: 60px;
    height: 2px;
    margin: 50px auto;
    background-color: var(--gold);
    opacity: 0.3;
}

.criteria-list {
    margin: 15px 0 25px 25px;
    list-style: none;
}

.criteria-list li::before {
    content: "•";
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    color: var(--gold);
    font-weight: bold;
}


/* ==========================================================================
   6. HOME
   ========================================================================== */

/* --- Versión de cierre y ganadores --- */
.closed-registration-container {
    margin: 40px 0;
    padding: 60px 20px;
    background-color: #fdfdfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.closed-title {
    margin-bottom: 20px;
    color: var(--black);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.closed-text {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #444;
    font-size: 18px;
    line-height: 1.6;
}

.btn-ganadores {
    display: inline-block;
    margin-bottom: 40px;
    padding: 18px 45px;
    background-color: var(--black);
    color: #fff;
    border: 2px solid var(--black);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ganadores i { margin-left: 10px; }

.btn-ganadores:hover {
    background-color: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--black);
}

.assurance-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 25px;
    background-color: #f4f4f4;
    border-left: 5px solid var(--black);
    text-align: left;
}

.assurance-box p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-style: italic;
}

/* --- Banner del jurado --- */
.jury-banner-clean {
    display: flex;
    align-items: stretch;
    margin: 40px 0;
    background-color: var(--gold-bright);
    overflow: hidden;
}

.jury-img-box {
    flex: 0 0 50%;
    line-height: 0;
}

.jury-img-box a {
    display: block;
    height: 100%;
}

.jury-img-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

.jury-img-box a:hover img { opacity: 0.9; }

.jury-info-box {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.jury-inner-text { max-width: 400px; }

.jury-p {
    margin-bottom: 20px;
    color: var(--black);
    font-size: 1rem;
    line-height: 1.5;
}

.jury-cta {
    display: inline-block;
    padding-bottom: 3px;
    color: var(--black);
    border-bottom: 2px solid var(--black);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jury-cta i { margin-left: 5px; font-size: 0.7rem; }
.jury-cta:hover { color: #fff; border-color: #fff; }

/* --- Galería del home (2 filas de 5) --- */
.home-gallery-section { padding: 60px 0; }

.gallery-grid-home {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.gallery-item-home img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item-home img:hover {
    transform: scale(1.04);
    filter: brightness(80%);
}

.gallery-footer {
    margin-top: 40px;
    text-align: center;
}

.btn-view-gallery {
    display: inline-block;
    padding: 16px 45px;
    background-color: var(--black);
    color: #fff;
    border: 2px solid var(--black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-view-gallery:hover {
    background-color: #fff;
    color: var(--black);
}

/* --- Sponsors y partners --- */
.sponsors-section { padding: 10px; text-align: center; }
.partners-section { padding: 20px; text-align: center; }

.partners-title {
    margin-bottom: 40px;
    color: var(--black);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sponsors-container,
.partners-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
    align-items: center;
}

.sponsors-container {
    grid-template-columns: repeat(7, 1fr);
    max-width: 1200px;
    justify-items: center;
}

.partners-grid {
    grid-template-columns: repeat(13, 1fr);
    max-width: 1100px;
}

.sponsor-item {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

.sponsor-item img,
.partner-item img {
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.sponsor-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 180px;
}

.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.sponsor-item:hover img,
.partner-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}


/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.site-footer {
    margin-top: 60px;
    padding: 40px 0 10px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 25px;
}

.footer-social a {
    color: #999;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover { color: var(--gold); }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #999;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.copyright {
    display: block;
    margin-top: 15px;
    color: #ccc;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-align: center;
}


/* ==========================================================================
   8. PÁGINAS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; }

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}

.form-group:last-of-type { margin-bottom: 30px; }

.form-group label {
    margin-bottom: 5px;
    color: var(--black);
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group textarea { resize: vertical; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--black);
    color: #fff;
    border: none;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover { background-color: var(--gold-bright); }

.contact-footer-email { margin: 40px 0; text-align: center; }

.contact-footer-email a {
    color: var(--gold-bright);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.contact-footer-email a:hover { border-bottom-color: var(--gold-bright); }

.alert {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
}

.alert-success { background-color: #d4edda; color: #155724; }
.alert-error   { background-color: #f8d7da; color: #721c24; }

/* --------------------------------------------------------------------------
   Galería (página completa)
   -------------------------------------------------------------------------- */

.subtitle.gallery-subtitle { margin-bottom: 20px; }

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    scroll-margin-top: 100px;       /* el header fijo no tapa el scroll */
}

.tab-btn {
    padding: 8px 12px;
    background: var(--black);
    color: #fff;
    border: 1px solid var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: #fff;
    color: var(--black);
    border-color: var(--black);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-item img:hover { filter: brightness(60%); }

/* Modal (60% en escritorio) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.95);
}

.modal-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    max-width: 1200px;
}

.modal-content {
    max-width: 100%;
    max-height: 85vh;
    border: 3px solid #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-family: sans-serif;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 30px 15px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn:hover { background: rgba(255,255,255,0.2); }
.prev-btn { left: -80px; }
.next-btn { right: -80px; }

/* --------------------------------------------------------------------------
   Jurado (tarjetas base; shortlist las reutiliza)
   -------------------------------------------------------------------------- */

.asoc-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--line);
}

.asoc-section:last-child { border-bottom: none; }

.asoc-header { margin-bottom: 40px; text-align: left; }

.asoc-header h2 {
    display: inline-block;
    padding-bottom: 5px;
    color: var(--black);
    border-bottom: 4px solid var(--gold-bright);
    font-size: 2rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.jury-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}

.judge-card {
    position: relative;
    background: #fff;
    text-align: left;
}

.judge-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    background-color: #f7f7f7;
    overflow: hidden;
}

.judge-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.judge-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.judge-info { text-align: left; }

.judge-country {
    color: #bbb;
    font-size: 0.6rem;
    font-weight: bold;
    text-transform: uppercase;
}

.judge-info h3 {
    margin-bottom: 6px;
    color: var(--black);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
}

.judge-info .title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    min-height: 4.2em;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
    overflow: hidden;
}

.judge-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.judge-info .company-tag {
    color: var(--gold-bright);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    text-transform: uppercase;
}

.social-link {
    color: var(--text);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s;
}

/* --------------------------------------------------------------------------
   Shortlist (variantes sobre las tarjetas del jurado)
   -------------------------------------------------------------------------- */

.shortlist-lead {
    margin-bottom: 20px;
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 600;
}

.shortlist .asoc-section { padding: 40px 0; }
.shortlist .asoc-header { margin-bottom: 30px; }
.shortlist .asoc-header h2 { font-size: 1.8rem; }
.shortlist .jury-grid { gap: 50px 30px; margin-bottom: 40px; }

/* Foto vertical 1080x1440 */
.shortlist .judge-image-container { aspect-ratio: 3 / 4; }
.shortlist .judge-image-container img { object-position: top; }

/* --------------------------------------------------------------------------
   Ganadores
   -------------------------------------------------------------------------- */

.winners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 25px;
    margin: 40px 0 60px;
}

.winner-card {
    padding-bottom: 20px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.3s ease;
}

.winner-card:hover { transform: translateY(-5px); }

.winner-image {
    width: 100%;
    aspect-ratio: 7 / 7.97;
    margin-bottom: 15px;
    background-color: var(--black);
    overflow: hidden;
}

.winner-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-info { padding: 0 15px; }

.winner-cat {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-bright);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.winner-country {
    color: #999;
    font-size: 0.65rem;
    font-weight: bold;
}

.winner-info h3 {
    margin-bottom: 6px;
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.winner-role {
    min-height: 3em;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.8rem;
    text-align: left;
}

.winner-footer { padding-top: 10px; border-top: 1px solid var(--line); }

.winner-company {
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Páginas legales (aviso, términos, uso aceptable, cookies)
   -------------------------------------------------------------------------- */

.privacy-content h2 {
    margin: 45px 0 15px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.privacy-content h3 {
    margin: 30px 0 12px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
}

.privacy-content ul {
    margin: 15px 0 25px 25px;
    list-style: none;
}

.privacy-content li {
    margin-bottom: 8px;
    padding-left: 1em;
    text-indent: -1em;
}

.privacy-content li::before {
    content: "•";
    display: inline-block;
    width: 1em;
    color: var(--gold);
    font-weight: bold;
    text-indent: 0;
}

.privacy-content .legal-updated {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

.legal-note,
.legal-contact {
    padding: 20px;
    border-radius: 5px;
}

.legal-note {
    margin-top: 30px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
}

.legal-note p { font-size: 14px; line-height: 1.6; }

.legal-contact {
    margin: 30px 0;
    background-color: var(--paper);
    border-left: 4px solid var(--text);
}

.privacy-content .legal-contact h3 {
    margin-top: 0;
    color: var(--black);
    font-size: 18px;
}

.legal-note p:last-child,
.legal-contact p:last-child { margin-bottom: 0; }


/* ==========================================================================
   9. RESPONSIVO
   ========================================================================== */

@media (max-width: 1300px) {
    .header-inner { padding: 12px 24px; }
    .navbar ul { gap: 18px; }
}

/* Menú hamburguesa + ajustes de tablet */
@media (max-width: 1100px) {
    .header-inner { flex-wrap: wrap; gap: 0; padding: 10px 20px; }
    .header-logo img { height: 52px; }

    /* toggle y lista pasan a ser hijos directos del flex del header */
    .navbar { display: contents; }
    .menu-toggle { display: block; margin-left: auto; padding: 8px 0 8px 10px; }

    .navbar ul {
        display: none;
        order: 3;
        flex: 0 0 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 8px;
    }
    .navbar ul.active { display: flex; }
    .navbar li { width: 100%; border-top: 1px solid #f3f3f3; }
    .navbar a { display: block; padding: 15px; color: var(--black); font-weight: 700; }
    .navbar a.nav-wrap { max-width: none; }

    .jury-grid { grid-template-columns: repeat(3, 1fr); }

    .modal-wrapper { width: 90%; }
    .prev-btn { left: -50px; }
    .next-btn { right: -50px; }
}

@media (max-width: 1024px) {
    .gallery-grid-home { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .sponsors-container { grid-template-columns: repeat(5, 1fr); }
    .partners-grid { grid-template-columns: repeat(6, 1fr); }
    .winners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .page-container { padding: 30px 20px;
        .video-wrap { --video-h: calc((100vw - 40px) * 9 / 16); }   /* 16:9 sin recorte */

    
}

    /* Tipografía */
    h1 { font-size: 24px; letter-spacing: 2px; }

    .subtitle {
        gap: 12px;
        margin-bottom: 30px;
        font-size: 18px !important;
    }

    .subtitle::before,
    .subtitle::after { width: 30px; }

    p, .privacy-content li {
        font-size: 14.5px !important;
        line-height: 1.6;
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    .subtitle, .copyright, .event-header span, .event-header h2 { text-align: center !important; }

    .sub-section { flex-direction: column; align-items: center; text-align: center; }
    .event-description { max-width: 100%; }

    /* Contador: franja negra bajo el hero */
    #cmo-countdown-overlay {
        position: static;
        justify-content: center;
        gap: 18px;
        width: 100%;
        padding: 12px 0;
        background: var(--black);
    }
    .cd-val { font-size: 1.8rem; }
    .cd-lbl { font-size: 0.7rem; line-height: 1.4; }

    /* Cierre / ganadores */
    .closed-registration-container { padding: 40px 15px; }
    .closed-title { font-size: 24px; }
    .closed-text { font-size: 16px; }
    .btn-ganadores { width: 100%; padding: 15px 20px; }

    /* Banner del jurado */
    .jury-banner-clean { flex-direction: column; }
    .jury-img-box, .jury-info-box { flex: 0 0 100%; }
    .jury-info-box { padding: 30px 20px; }

    /* Sponsors y partners */
    .sponsors-container { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .sponsor-item img { max-width: 240px; }
    .partners-grid { grid-template-columns: repeat(5, 1fr); gap: 15px; }

    /* Galería (página completa) */
    .gallery-container { grid-template-columns: repeat(2, 1fr); }
    .prev-btn { left: 5px; background: rgba(0,0,0,0.4); }
    .next-btn { right: 5px; background: rgba(0,0,0,0.4); }

    /* Jurado */
    .asoc-section { padding: 40px 0; }
    .asoc-header, .asoc-header h2 { text-align: left !important; }
    .asoc-header h2 { font-size: 1.5rem; }

    .jury-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 15px; }

    .judge-card, .judge-info { text-align: left !important; }
    .judge-info h3 { font-size: 0.9rem; text-align: left !important; }
    .judge-info .title {
        min-height: auto;
        -webkit-line-clamp: 5;
        font-size: 0.7rem;
        text-align: left !important;
    }
    .judge-footer { justify-content: flex-start; gap: 15px; }
    .judge-info .company-tag { font-size: 0.6rem; }

    /* Shortlist */
    .shortlist .asoc-header h2 { font-size: 1.4rem; }
    .shortlist .jury-grid { gap: 30px 15px; }
}

@media (max-width: 600px) {
    .gallery-grid-home { grid-template-columns: repeat(2, 1fr); }
    .winners-grid { grid-template-columns: 1fr; }
}

/* Celulares reales: imagen vertical a su tamaño natural, sin recorte */
@media (pointer: coarse) and (max-width: 768px) {
    .hero-cover a { height: auto; }
    .hero-cover .banner-img { height: auto; }
}

/* ==========================================================================
   SECCIÓN PATROCINIOS (home)
   ========================================================================== */

.patrocinio { margin: 0 0 60px;
    
}

/* Intro + video */
.patrocinio-intro p {
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 17px;
    text-align: center;
}

.patrocinio-heading {
    margin: 35px 0 20px;
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.video-wrap {
    --video-h: 675px;                   /* ← altura fija del video */
    position: relative;
    max-width: 1200px;                  /* mismo ancho que el contenido del sitio */
    height: var(--video-h);
    margin: 0 auto;
    background: var(--black);
    overflow: hidden;                   /* lo que sobre del video se recorta */
    container-type: inline-size;        /* permite medir el ancho real del contenedor (cqw) */
}

.video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);   /* video centrado */
    width: max(100cqw, calc(var(--video-h) * 16 / 9));
    height: max(var(--video-h), calc(100cqw * 9 / 16));
    border: 0;
}

/* Resultados: franja oscura a ancho completo */
.results-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px 20px;
    background: #0d1317;
    text-align: center;
}

.results-title {
    margin-bottom: 45px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.result-num {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.result-label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* Beneficios */
.benefits {
    width: 100vw;                      /* franja a ancho completo, como la oscura de arriba */
    margin-left: calc(50% - 50vw);
    padding: 60px 20px;
    background: #eadfd7;
    text-align: center;
}

.benefits-title {
    margin-bottom: 45px;
    color: var(--black);
    font-size: 28px;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    max-width: 1100px;                 /* nuevo: mantiene las columnas centradas dentro de la franja */
    margin: 0 auto;
}

.benefit h3 {
    margin-bottom: 12px;
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
}

.benefit p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    text-align: center;
}

/* Llamado a la acción */
.patrocinio-cta {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
}

.patrocinio-cta p { text-align: center; }

.patrocinio-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    margin-top: 30px;
}

.patrocinio-top {
    width: 100vw;                      /* franja a ancho completo */
    margin-left: calc(50% - 50vw);
    padding: 60px 20px;
    background: #eadfd7;
}

.btn-pill {
    display: inline-block;
    padding: 15px 45px;
    background: var(--gold);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-pill:hover { background: var(--black); }

/* Responsivo */
@media (max-width: 992px) {
    .results-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* la regla móvil global de <p> usa !important; la superamos por especificidad */
    .patrocinio-intro p,
    .patrocinio-cta p,
    .benefit p { text-align: center !important; }
}

@media (max-width: 600px) {
    .results-title,
    .benefits-title { font-size: 22px; }
    .result-num { font-size: 34px; }
    .result-label { font-size: 12px; }
    .benefits-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MENÚ DESPLEGABLE "GANADORES"
   ========================================================================== */

.has-dropdown { position: relative; }

/* Botón padre: mismo aspecto que los enlaces del menú */
.nav-parent {
    display: inline-block;
    padding: 8px 4px;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-parent:hover { color: var(--gold); }

.nav-caret {
    margin-left: 4px;
    font-size: 8px;
    transition: transform 0.3s ease;
}

.has-dropdown.open .nav-caret { transform: rotate(180deg); }

/* Panel desplegable (escritorio) */
.navbar .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 190px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.has-dropdown.open > .dropdown { display: flex; }

@media (hover: hover) and (min-width: 1101px) {
    .has-dropdown:hover > .dropdown { display: flex; }
}

.navbar .dropdown a {
    display: block;
    padding: 12px 22px;
    text-align: left;
    white-space: nowrap;
}

/* Enlace activo dentro del panel: sin subrayado, solo dorado */
.navbar .dropdown .active-link { border-bottom: 0; }

/* Menú móvil (hamburguesa): el desplegable se abre en acordeón */
@media (max-width: 1100px) {
    .nav-parent {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 15px;
        color: var(--black);
        font-weight: 700;
    }

    .navbar .dropdown {
        position: static;
        transform: none;
        min-width: 0;
        padding: 0;
        background: var(--paper);
        border: 0;
        box-shadow: none;
    }

    .navbar .dropdown li { border-top: 1px solid #efefef; }
    .navbar .dropdown a { padding: 13px 15px; font-weight: 600; text-align: center; }
}

.home-video {
    width: 100vw;                      /* franja a ancho completo, como las demás */
    margin-left: calc(50% - 50vw);
    padding: 60px 20px;
    background: #eadfd7;
}

/* ==========================================================================
   PÁGINA 404  ·  pegar al FINAL de style.css
   ========================================================================== */

.error-page {
    padding: 40px 0 20px;
    text-align: center;
}

.error-code {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: clamp(90px, 18vw, 180px);
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1;
    text-align: center;
}

.error-page h1 { margin-bottom: 15px; }

.error-page p:not(.error-code) {
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 16px;
    text-align: center;
}

.btn-error {
    display: inline-block;
    padding: 16px 45px;
    background: var(--black);
    color: #fff;
    border: 2px solid var(--black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
}

.btn-error:hover {
    background: #fff;
    color: var(--black);
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.error-links a {
    padding-bottom: 3px;
    color: var(--text);
    border-bottom: 2px solid var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.error-links a:hover { color: var(--gold); }

@media (max-width: 768px) {
    /* la regla móvil global de <p> usa !important; la superamos por especificidad */
    .error-page p:not(.error-code) { text-align: center !important; }
}