/* ==========================================================================
   HEADER Y FOOTER COMPARTIDOS
   Estilos globales del header/footer. Se carga al final para que estos componentes sean consistentes en todas las URLs.
   ========================================================================== */

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 248, 236, .96);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow-sm);
  backdrop-filter: blur(16px);
}

.header--compacto {
  box-shadow: var(--brand-shadow-md);
}

.header-container {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.logo,
.logo-link,
.header-logo,
.brand-link {
  color: var(--brand-primary);
  text-decoration: none;
}

.logo-texto-principal,
.brand-title,
.header-brand-title {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.03em;
}

.logo-texto-secundario,
.brand-subtitle,
.header-brand-subtitle {
  color: var(--brand-muted);
  font-family: var(--font-body);
  font-weight: 700;
}

.nav,
.nav-menu,
.header-nav {
  font-family: var(--font-body);
}

.nav a,
.nav-link,
.nav-dropdown-toggle,
.header-nav a {
  color: var(--brand-primary);
}

.nav a:hover,
.nav-link:hover,
.nav-dropdown-toggle:hover,
.header-nav a:hover {
  color: var(--brand-accent);
}

.nav-dropdown-menu,
.stats-nav-menu,
.nev-search-suggestions,
.mobile-menu {
  background: var(--brand-surface-2);
  border: 1px solid var(--brand-border);
  box-shadow: var(--brand-shadow-md);
}

.nav-dropdown-item,
.stats-nav-menu .nav-dropdown-item,
.nev-search-option {
  color: var(--brand-primary);
}

.nav-dropdown-item:hover,
.stats-nav-menu .nav-dropdown-item:hover,
.nev-search-option:hover,
.nev-search-option.is-active {
  background: color-mix(in srgb, var(--brand-accent) 9%, var(--brand-surface-2));
  color: var(--brand-primary);
}






/* Header primary dropdown: variante coral completa */
html body .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu,
html body .header .nev-primary-dropdown-menu,
html body .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu,
html body .nev-header .nev-primary-dropdown-menu,
html body.mundial-page .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu,
html body.mundial-page .header .nev-primary-dropdown-menu,
html body.mundial-page .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu,
html body.mundial-page .nev-header .nev-primary-dropdown-menu {
  background: #ef5148;
  border-color: rgba(255, 248, 236, .32);
  box-shadow: 0 18px 42px rgba(32, 33, 31, .30);
}

html body .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item,
html body .header .nev-primary-dropdown-menu > a.nev-primary-dropdown-item,
html body .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item,
html body .nev-header .nev-primary-dropdown-menu > a.nev-primary-dropdown-item,
html body.mundial-page .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item,
html body.mundial-page .header .nev-primary-dropdown-menu > a.nev-primary-dropdown-item,
html body.mundial-page .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item,
html body.mundial-page .nev-header .nev-primary-dropdown-menu > a.nev-primary-dropdown-item {
  color: #fff8ec;
  background: transparent;
  opacity: 1;
  visibility: visible;
  text-shadow: none;
}

html body .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:hover,
html body .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:focus-visible,
html body .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item.is-active,
html body .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:hover,
html body .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:focus-visible,
html body .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item.is-active,
html body.mundial-page .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:hover,
html body.mundial-page .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:focus-visible,
html body.mundial-page .header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item.is-active,
html body.mundial-page .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:hover,
html body.mundial-page .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item:focus-visible,
html body.mundial-page .nev-header .nev-primary-dropdown.is-open > .nev-primary-dropdown-menu > a.nev-primary-dropdown-item.is-active {
  color: #fff8ec;
  background: #20211f;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 236, .22);
}

/* Footer */
.footer,
.footer-main,
.site-footer {
  background: var(--brand-primary);
  color: var(--brand-surface-2);
}

.footer a,
.footer-main a,
.site-footer a {
  color: color-mix(in srgb, var(--brand-surface-2) 88%, transparent);
  text-decoration: none;
}

.footer a:hover,
.footer-main a:hover,
.site-footer a:hover {
  color: var(--brand-surface-2);
}

.footer-title,
.footer-heading,
.footer-col-title,
.footer-brand-title {
  color: var(--brand-surface-2);
  font-family: var(--font-display);
  font-weight: 900;
}

.footer-text,
.footer-copy,
.footer-bottom,
.footer-main p {
  color: color-mix(in srgb, var(--brand-surface-2) 72%, transparent);
}

.footer-grid,
.footer-main-grid {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.footer-logo img,
.footer-brand img {
  max-width: 180px;
  height: auto;
}

@media (max-width: 760px) {
  .header-container,
  .footer-grid,
  .footer-main-grid {
    width: min(100% - 24px, 1180px);
  }
}

/* ==========================================================================
   HOTFIX HEADER RESPONSIVE — v7804
   Compacta el header móvil y estabiliza el ancho en escritorio/tablet.
   ========================================================================== */

html body .header.nev-header {
  width: 100%;
}

html body .header.nev-header .header-container,
html body .header.nev-header .nev-header-container {
  box-sizing: border-box;
  width: min(1220px, calc(100% - 28px));
  max-width: 1220px;
  min-height: 74px;
  padding: 8px 0;
}

html body .header.nev-header .logo.logo--full,
html body a.nev-logo.logo--full {
  flex: 0 0 auto;
  width: min(220px, 22vw);
  max-width: 220px;
  margin: 0;
}

html body .header.nev-header .logo.logo--full .logo-full-img,
html body a.nev-logo.logo--full img.logo-full-img {
  width: min(220px, 22vw);
  max-width: 220px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

@media (width <= 1040px) {
  html body .header.nev-header .header-container,
  html body .header.nev-header .nev-header-container {
    width: min(100% - 24px, 960px);
    gap: 12px;
  }

  html body .header.nev-header .logo.logo--full,
  html body a.nev-logo.logo--full {
    width: 190px;
    max-width: 190px;
  }

  html body .header.nev-header .logo.logo--full .logo-full-img,
  html body a.nev-logo.logo--full img.logo-full-img {
    width: 190px;
    max-width: 190px;
    max-height: 58px;
  }
}

@media (width <= 760px) {
  html body .header.nev-header .header-container,
  html body .header.nev-header .nev-header-container {
    width: 100%;
    min-height: 0;
    gap: 8px;
    padding: 8px 10px 10px;
  }

  html body .header.nev-header .logo,
  html body .header.nev-header .nev-logo,
  html body .header.nev-header .logo.logo--full,
  html body a.nev-logo.logo--full {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  html body .header.nev-header .logo.logo--full .logo-full-img,
  html body a.nev-logo.logo--full img.logo-full-img {
    width: min(180px, 56vw);
    max-width: min(180px, 56vw);
    max-height: 86px;
    object-position: center center;
  }

  html body .nev-primary-nav {
    width: 100%;
    max-width: 360px;
    gap: 6px;
  }

  html body .nev-primary-link,
  html body .nev-menu-button,
  html body .nev-primary-dropdown-btn {
    min-height: 36px;
    height: 36px;
    padding: 0 7px;
    font-size: clamp(.58rem, 2.45vw, .68rem);
  }
}

@media (width <= 390px) {
  html body .header.nev-header .logo.logo--full .logo-full-img,
  html body a.nev-logo.logo--full img.logo-full-img {
    width: min(168px, 54vw);
    max-width: min(168px, 54vw);
    max-height: 80px;
  }

  html body .nev-primary-nav {
    max-width: 344px;
  }

  html body .nev-primary-link,
  html body .nev-menu-button,
  html body .nev-primary-dropdown-btn {
    min-height: 35px;
    height: 35px;
    font-size: clamp(.56rem, 2.35vw, .62rem);
  }
}
