/*
 * Procedencia (portal TF; archivos fuente de solo lectura):
 * public/shared/aire.css:25–33 — .vidrio/.vidrio--claro y .filo: material,
 *   filtro, brillo interior y filo; aplicados a barra y menú.
 * public/shared/aire.css:84 — .btn-rojo: pastilla roja de acceso.
 * public/entrar/index.html:44–73 — .access-audience-badge: vidrio HUD de
 *   «Colaboradores TF»; aquí contiene solamente los rótulos existentes.
 * public/entrada/sistema-holografico.css:974–995,2929–2937 — radio 34px,
 *   borde cian y transición de la tarjeta; adaptación al ancho de la barra.
 * public/entrada/sistema-holografico.css:1124–1132 — título de acceso:
 *   peso, interletraje -.055em y línea .98; Archivo sustituye a Inter.
 * public/entrada/sistema-holografico.css:2565–2571 — luz de los nodos:
 *   rgba(241,255,255,.92) y drop-shadow cian; indicador de los enlaces.
 * Adaptaciones propias: geometría responsive, Archivo/GeistMono locales,
 * contraste de noche, áreas de toque y foco. No cambia el motor de scroll.
 */

:root {
  --holo-ice: #e8fdff;
  --holo-cyan: #91ecf7;
  --holo-spring: cubic-bezier(.18,.9,.28,1.16);
  --holo-radius: 34px;
}

/* El cristal claro de /entrar/, con el filo de luz de la ventana. */
.navigation,
.menu-sheet {
  isolation: isolate;
  border: 1px solid rgba(230,253,255,.58);
  border-radius: var(--holo-radius);
  color: #102d2c;
  background: linear-gradient(134deg,rgba(255,255,255,.14) 0%,rgba(196,196,196,.04) 60%);
  -webkit-backdrop-filter: saturate(1.15) blur(26px) brightness(1.06);
  backdrop-filter: saturate(1.15) blur(26px) brightness(1.06);
  box-shadow: 0 8px 12px rgba(0,0,0,.05),inset -.55px 1px .45px -1.5px rgba(255,255,255,.3),inset 0 1px 2px rgba(255,255,255,.3);
}

.navigation::before,
.menu-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1.5px;
  background: conic-gradient(from 270deg at var(--holo-radius) var(--holo-radius),transparent 0deg,rgba(255,255,255,.9) 45deg,transparent 170deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.navigation {
  top: max(12px,env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  gap: 8px;
  min-height: 70px;
  padding: 8px 10px 8px 14px;
  translate: none;
  transition: background .2s cubic-bezier(.23,1,.32,1),border-color .2s cubic-bezier(.23,1,.32,1);
}

.brand {
  min-width: 0;
  min-height: 44px;
}

.brand img {
  width: clamp(116px,33vw,140px);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.12));
}

.navigation .nav-quote,
.menu-sheet .button,
.moment-cta .button {
  display: inline-flex;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: #fc0202;
  color: #fff;
  box-shadow: 0 5px 15px rgba(252,2,2,.25);
  font-family: Archivo,Geist,sans-serif;
  font-weight: 700;
}

.navigation .nav-quote {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #25d366;
  box-shadow: 0 5px 15px rgba(11,28,36,.22);
}

.navigation .nav-quote span {
  font-size: 26px;
}

.menu-toggle {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(230,253,255,.58);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.3);
}

.menu-toggle span { background: currentColor; }

.desktop-links {
  font: 600 14px/1.15 Archivo,Geist,sans-serif;
}

.desktop-links a { min-width: 44px; justify-content: center; }

.desktop-links a,
.menu-sheet nav a {
  position: relative;
  min-height: 44px;
}

.desktop-links a::after,
.menu-sheet nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(241,255,255,.92);
  filter: drop-shadow(0 0 5px rgba(111,232,249,.8));
  box-shadow: 0 0 0 1px rgba(15,88,103,.32);
  opacity: 0;
  transition: opacity .16s ease;
}

.desktop-links a:is(:hover,:focus-visible,[aria-current]):not([aria-disabled])::after,
.menu-sheet nav a:is(:hover,:focus-visible,[aria-current]):not([aria-disabled])::after {
  opacity: 1;
}

.desktop-links a:not([aria-disabled]):hover { color: inherit; }

.menu-sheet {
  padding: 24px;
  background-color: rgba(240,248,249,.82);
}

.menu-sheet::backdrop {
  background: rgba(6,34,43,.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.menu-sheet nav a { font: 700 27px/1.1 Archivo,Geist,sans-serif; }
.menu-sheet nav a::after { left: auto; right: 8px; bottom: 50%; }
.menu-close { border-radius: 50%; }

.navigation :is(a,button):focus-visible,
.menu-sheet :is(a,button):focus-visible {
  outline: 2px solid #157385;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(232,253,255,.7);
}

/* La portada mantiene sus tres momentos y el encendido de palabras. */
.motion .moment {
  top: calc(max(12px,env(safe-area-inset-top)) + 94px);
  left: 24px;
  right: 24px;
}

.moment h1 {
  max-width: none;
  margin: 0 auto;
  font-family: Archivo,Geist,sans-serif;
  font-weight: 780;
  font-stretch: 88%;
  font-size: clamp(30px,4.15svh,36px);
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.moment-intro p {
  font-family: Archivo,Geist,sans-serif;
  font-weight: 600;
  font-stretch: 95%;
  font-size: clamp(18px,2.55svh,22px);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.hero-number { gap: 17px; }
.hero-number > strong,
.hero-age strong {
  font-family: Archivo,Geist,sans-serif;
  font-weight: 800;
  font-stretch: 90%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
}

.hero-number > strong {
  font-size: min(108px,12.8svh);
  line-height: .88;
}

/* Copia de .access-audience-badge; se permite envolver el texto existente. */
.hero-number > span,
.hero-age > span {
  --hud-cut: 7px;
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  min-height: 28px;
  padding: 7px 12px;
  border: 1px solid rgba(122,220,235,.72);
  color: rgba(15,43,53,.88);
  background: linear-gradient(180deg,rgba(255,255,255,.30),rgba(207,238,244,.10));
  -webkit-backdrop-filter: blur(10px) saturate(1.18);
  backdrop-filter: blur(10px) saturate(1.18);
  clip-path: polygon(var(--hud-cut) 0,calc(100% - var(--hud-cut)) 0,100% var(--hud-cut),100% calc(100% - var(--hud-cut)),calc(100% - var(--hud-cut)) 100%,var(--hud-cut) 100%,0 calc(100% - var(--hud-cut)),0 var(--hud-cut));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62),0 4px 12px rgba(20,73,86,.08);
  font-family: GeistMono,monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-number > span { max-width: 175px; }
.hero-age { margin: 24px auto 0; gap: 8px; max-width: 320px; }
.hero-age strong { font-size: min(64px,7.6svh); line-height: .96; }
.hero-age small { font-size: .32em; font-weight: 700; letter-spacing: -.03em; }
.hero-age > span { width: fit-content; }

/* La edad de México va aparte, chica y sin caja, para que no se confunda con la de TF. */
.hero-age-mx {
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(15,43,53,.24);
  color: rgba(15,43,53,.78);
  font: 500 12px/1.4 Geist,sans-serif;
}
.hero-age-mx b { font-weight: 700; }
.noche .hero-age-mx { color: rgba(232,253,255,.78); border-top-color: rgba(174,239,249,.32); }

/* El vidrio permanece claro durante la Vía Láctea. */
.noche .navigation {
  color: #e8fdff;
  background: linear-gradient(134deg,rgba(255,255,255,.24),rgba(196,220,228,.08) 60%);
}

.noche .hero-number > span,
.noche .hero-age > span {
  color: #e8fdff;
  border-color: rgba(174,239,249,.46);
  background: linear-gradient(180deg,rgba(255,255,255,.16),rgba(207,238,244,.04));
}

.noche .navigation :is(a,button):focus-visible {
  outline-color: #e8fdff;
  box-shadow: 0 0 0 5px rgba(15,88,103,.55);
}

@media (min-width:800px) {
  .navigation {
    top: 18px;
    left: 50%;
    right: auto;
    width: min(1240px,calc(100% - 64px));
    max-width: none;
    min-height: 74px;
    gap: 22px;
    padding: 8px 12px 8px 24px;
    transform: translateX(-50%);
  }

  .brand img { width: 170px; }
  .desktop-links { gap: clamp(14px,1.6vw,25px); }
  .navigation .nav-quote { width: 48px; height: 48px; }
  .navigation .nav-quote span { font-size: 28px; }
  .menu-toggle { display: none; }

  .motion .moment {
    top: calc(96px + 2.3svh);
    left: 50%;
    right: auto;
    width: min(1320px,88vw);
    max-width: none;
    translate: -50% 0;
  }

  .moment h1 { font-size: clamp(34px,min(4.3vw,6.6svh),64px); }
  .moment-intro p { font-size: clamp(20px,min(2.6vw,3.35svh),34px); max-width: 42em; margin: 0 auto; }
  .moment-data { align-items: center; gap: 64px; }
  .hero-number > strong { font-size: min(142px,14.5svh); }
  .hero-number > span { max-width: 200px; font-size: clamp(10px,1.25svh,12px); }
  .hero-age { margin: 0; gap: 7px; max-width: 330px; }
  .hero-age strong { font-size: min(80px,8svh); line-height: .9; }
  .hero-age > span { font-size: clamp(9px,1.1svh,11px); padding: 6px 11px; }
}

/* El menú se compacta antes de que los seis enlaces resten espacio al logo. */
@media (min-width:800px) and (max-width:1099px) {
  .navigation { gap: 12px; }
  .brand img { width: 150px; }
  .desktop-links { display: none; }
  .navigation .nav-quote { margin-left: auto; }
  .menu-toggle { display: flex; }
}

/* El techo ocupa el centro desde y≈184 en laptop: cifras a los dos lados. */
@media (min-width:800px) and (max-height:760px) {
  .navigation { top: 14px; min-height: 68px; padding-top: 6px; padding-bottom: 6px; }
  .brand img { width: 158px; }
  .motion .moment { top: 102px; }
  .moment h1 { font-size: clamp(32px,min(4.05vw,6.05svh),46px); }
  .moment-intro p { font-size: clamp(19px,min(2.3vw,3.1svh),25px); max-width: 50em; }
  .moment-data { justify-content: space-between; align-items: start; }
  .hero-number { max-width: 25vw; align-items: center; gap: 12px; }
  .hero-number > strong { font-size: min(98px,13.6svh); }
  .hero-number > span { max-width: 165px; font-size: 9px; }
  .hero-age { max-width: 25vw; align-items: start; }
  .hero-age strong { font-size: min(64px,8.7svh); }
  .hero-age > span { font-size: 9px; max-width: 295px; padding: 5px 9px; }
}

@media (max-width:374px) {
  .navigation { left: 8px; right: 8px; padding-left: 10px; padding-right: 6px; gap: 5px; }
  .brand img { width: 112px; }
  .motion .moment { left: 20px; right: 20px; }
  .hero-number > span { max-width: 160px; font-size: 9px; }
}

@media (prefers-reduced-motion:reduce) {
  .navigation {
    position: relative;
    inset: auto;
    transform: none;
    translate: none;
    width: auto;
    margin: 12px;
  }
  /* La foto estática de base.css:18 mide 65svh: el texto comienza debajo. */
  .hero-moments { color: #102d2c; padding-top: calc(65svh + 32px); }
  .moment { translate: none; width: auto; }
  .moment h1 { font-size: clamp(32px,5vw,62px); }
  .moment-data { display: block; }
  .hero-number { justify-content: flex-start; max-width: none; }
  .hero-age { margin: 28px 0 0; max-width: 360px; justify-items: start; text-align: left; }
}

@media (prefers-reduced-transparency:reduce) {
  .navigation,.menu-sheet { background: #edf5f6; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .noche .navigation { color: #102d2c; background: #edf5f6; }
  .hero-number > span,.hero-age > span { background: #e2eff4; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .noche .hero-number > span,.noche .hero-age > span { color: #102d2c; background: #e2eff4; }
}
