/* ==========================================================================
   CHROME DEL SITIO (navbar + footer) - UNICA FUENTE DE VERDAD
   Se carga en TODAS las paginas publicas (home, layouts viejos, landings).

   Estrategia de aislamiento:
   - Todo cuelga de .site-header / .site-footer (mas clases propias BEM
     "site-header__*" / "site-footer__*"), asi que ni el CSS del sitio viejo
     (Bootstrap/website.scss) ni el de cada landing lo pisa.
   - Las variables viven en los wrappers (--pdc-*), no en :root.
   - Cada propiedad que un reset global podria tocar se fija explicitamente.
   ========================================================================== */

.site-header,
.site-footer {
  --pdc-indigo: #1B1464;
  --pdc-indigo-dark: #0D0838;
  --pdc-coral: #FF4A2A;
  --pdc-coral-hover: #E63D1F;
  --pdc-ink-muted: #6E6A8A;
  --pdc-border: #E2E8F0;
  --pdc-sky: #EEF8FD;
  --pdc-shadow-sm: 0 4px 12px rgba(27, 20, 100, 0.06);
  --pdc-shadow-md: 0 12px 28px rgba(27, 20, 100, 0.1);
  --pdc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  box-sizing: border-box;
  font-family: var(--pdc-font);
  font-style: normal;
  font-variant: normal;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header *,
.site-header *::before,
.site-header *::after,
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

/* Reset de links, listas, botones e imagenes dentro del chrome */
.site-header a,
.site-footer a {
  background: none;
  text-decoration: none;
  text-shadow: none;
  border-bottom: 0;
  box-shadow: none;
}

.site-header a:hover,
.site-footer a:hover {
  text-decoration: none;
}

.site-header img,
.site-footer img {
  display: block;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.site-header button {
  font-family: inherit;
  margin: 0;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Idiomas: se decide por <html lang>, no por clases del body */
.site-header [data-lang],
.site-footer [data-lang] {
  display: none !important;
}

html[lang^="es"] .site-header [data-lang="es"],
html[lang^="en"] .site-header [data-lang="en"],
html[lang^="es"] .site-footer [data-lang="es"],
html[lang^="en"] .site-footer [data-lang="en"] {
  display: inline !important;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
nav.navbar.site-header {
  display: block;
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 900;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  color: var(--pdc-indigo);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  border: 0;
  border-bottom: 1px solid var(--pdc-border);
  box-shadow: var(--pdc-shadow-sm);
  transform: none;
  transition: all 0.3s ease;
}

.site-header .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 48px);
  max-width: 1600px;
  height: 90px;
  margin: 0 auto;
  padding: 0;
  transition: height 0.3s ease;
}

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

.site-header .site-header__logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

nav.navbar.site-header.scrolled .site-header__inner {
  height: 64px;
}

nav.navbar.site-header.scrolled .site-header__logo {
  height: 44px;
}

/* Links del menu */
.site-header .site-header__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
}

.site-header .site-header__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 99px;
  color: var(--pdc-indigo);
  font-family: var(--pdc-font);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header .site-header__link:hover,
.site-header .site-header__link.is-active {
  background: var(--pdc-sky);
  color: var(--pdc-coral);
}

/* Lado derecho: idioma, carrito, CTA, hamburguesa */
.site-header .site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.site-header .site-header__lang {
  display: flex;
  margin: 0;
  padding: 4px;
  background: #F1F5F9;
  border: 1px solid var(--pdc-border);
  border-radius: 99px;
}

.site-header .site-header__lang-btn {
  margin: 0;
  padding: 6px 14px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--pdc-ink-muted);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: normal;
  cursor: pointer;
  transition: all 0.2s;
}

.site-header .site-header__lang-btn.is-active {
  background: var(--pdc-indigo);
  color: #FFFFFF;
}

.site-header .site-header__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--pdc-border);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--pdc-indigo);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header .site-header__cart:hover {
  background: var(--pdc-sky);
  color: var(--pdc-coral);
}

.site-header .site-header__cart svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* CTA "Comprar Boletos" (look btn-coral) */
.site-header .site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 13px 26px;
  border: 2px solid var(--pdc-coral);
  border-radius: 999px;
  background: var(--pdc-coral);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(255, 74, 42, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .site-header__cta:hover {
  background: var(--pdc-coral-hover);
  border-color: var(--pdc-coral-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 74, 42, 0.5);
}

/* Hamburguesa (solo en pantallas angostas) */
.site-header .site-header__toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--pdc-border);
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
}

.site-header .site-header__toggle span {
  display: block;
  width: auto;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--pdc-indigo);
}

@media (max-width: 1360px) {
  .site-header .site-header__link {
    padding: 8px 8px;
    font-size: 0.75rem;
  }
}

/* Debajo de 1200px los 7 links no entran: pasan a un panel desplegable. */
@media (max-width: 1200px) {
  .site-header .site-header__toggle {
    display: flex;
  }

  .site-header .site-header__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--pdc-border);
    box-shadow: var(--pdc-shadow-md);
  }

  .site-header .site-header__links.is-open {
    display: flex;
  }

  .site-header .site-header__link {
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .site-header .site-header__inner {
    height: 72px;
  }

  .site-header .site-header__logo {
    height: 44px;
    max-width: 140px;
  }

  .site-header .site-header__cta {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .site-header .site-header__inner {
    height: 68px;
    gap: 8px;
  }

  .site-header .site-header__logo {
    height: 38px;
    max-width: 104px;
  }

  nav.navbar.site-header.scrolled .site-header__logo {
    height: 38px;
  }

  .site-header .site-header__right {
    gap: 6px;
  }

  .site-header .site-header__lang-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  .site-header .site-header__cta {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .site-header .site-header__cart,
  .site-header .site-header__toggle {
    width: 36px;
    height: 36px;
  }

  .site-header .site-header__toggle {
    padding: 9px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 52px 0;
  background: var(--pdc-indigo-dark);
  color: #A9A2C2;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .site-footer__inner,
.site-footer .site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 48px);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.site-footer .site-footer__inner {
  gap: 24px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer .site-footer__brand {
  display: block;
  line-height: 0;
}

.site-footer .site-footer__logo {
  height: 76px;
  width: auto;
  object-fit: contain;
}

.site-footer .site-footer__nav,
.site-footer .site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
}

.site-footer .site-footer__nav {
  flex: 1;
  justify-content: center;
}

.site-footer .site-footer__nav a,
.site-footer .site-footer__social a {
  color: #D9D4EA;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.site-footer .site-footer__nav a:hover,
.site-footer .site-footer__social a:hover {
  color: #FFFFFF;
}

.site-footer .site-footer__phone {
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
}

.site-footer .site-footer__bottom {
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 32px;
  margin-bottom: 0;
  padding-top: 24px;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .site-footer__address {
  margin: 0;
  color: #A9A2C2;
}

.site-footer .site-footer__address strong {
  color: #D9D4EA;
  font-weight: 700;
}

@media (max-width: 768px) {
  footer.site-footer {
    padding: 44px 0;
  }

  .site-footer .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .site-footer__bottom,
  .site-footer .site-footer__nav,
  .site-footer .site-footer__social {
    justify-content: center;
    text-align: center;
  }

  /* Paginas con barra fija de compra: que no tape el final del footer. */
  body:has(> .mobile-sticky-bar) {
    padding-bottom: 68px;
  }
}
