/* Laciro Estudios · estilos comunes de estudios.laciro.com

   Identidad «Andenes»: Laciro Estudios es una estación chica, la línea ámbar de la
   red Laciro (laciro.com). Cada plataforma es un andén
   con su color, como una línea de metro, y cada proyecto es una salida.
     Andén 1 · Teléfono Android  rosado
     Andén 2 · Android Auto      verde
     Andén 3 · PC                azul
   Señalética en Big Shoulders (letra de carteles), textos en Barlow,
   tablero de letras que giran y boletos para quien quiera probar (movimiento en estacion.js). */

@font-face { font-family: "Big Shoulders"; src: url("/fuentes/big-shoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fuentes/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fuentes/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --noche: #0f1218;         /* la estación de noche */
  --anden: #141820;         /* fondo de cada andén */
  --tablero: #171a21;
  --ambar: #ffb21a;         /* lo que está pasando ahora */
  --texto: #ebe8e1;
  --suave: #9ba1ad;
  --borde: #2b303a;
  --papel: #f4efe2;         /* boletos */
  --tinta: #15171c;
  --linea-1: #ff5aa5;       /* Andén 1 · Teléfono */
  --linea-2: #1fbf75;       /* Andén 2 · Auto */
  --linea-3: #4a8cff;       /* Andén 3 · PC */
  --senal: "Big Shoulders", "Arial Narrow", sans-serif;
  --letra: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; background: var(--noche); color: var(--texto); font: 400 18px/1.55 var(--letra); }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--senal); font-weight: 800; line-height: .92; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; color: #fff; }

.envoltura { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .envoltura { padding-inline: 32px; } }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--noche); }

/* ---------- Letrero de la estación ---------- */

.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.letrero { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; color: #111; text-decoration: none; }
.letrero__puntos { display: flex; }
.letrero__puntos i { width: 18px; height: 18px; margin-left: -6px; border-radius: 50%; border: 3px solid #fff; }
.letrero__puntos i:first-child { margin-left: 0; background: var(--linea-1); }
.letrero__puntos i:nth-child(2) { background: var(--linea-2); }
.letrero__puntos i:nth-child(3) { background: var(--linea-3); }
.letrero b { font: 800 26px/1 var(--senal); letter-spacing: .04em; }
/* Distintivo de la línea: en la red Laciro, Estudios es la línea ámbar. */
.letrero:has(.letrero__division) { padding-right: 8px; }
.letrero__division { padding: 6px 11px 5px; border-radius: 999px; background: var(--ambar); color: var(--noche); font: 800 17px/1 var(--senal); letter-spacing: .07em; }
.menu { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.menu a { color: var(--suave); text-decoration: none; }
.menu a:hover, .menu a[aria-current] { color: var(--texto); }
@media (max-width: 560px) { .menu { gap: 16px; } .menu__extra { display: none; } }
@media (max-width: 420px) {
  .cabecera { gap: 12px; }
  .letrero { gap: 9px; padding: 7px 12px 7px 8px; }
  .letrero__puntos i { width: 15px; height: 15px; margin-left: -5px; border-width: 2.5px; }
  .letrero b { font-size: 22px; }
  .letrero__division { padding: 5px 8px 4px; font-size: 14px; }
  .menu { gap: 14px; font-size: 15px; }
}

/* ---------- Botones y enlaces ---------- */

.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px;
  border: 0; border-radius: 999px; background: var(--color, var(--ambar)); color: var(--noche);
  font: 800 20px/1 var(--senal); letter-spacing: .03em; text-decoration: none; cursor: pointer;
}
.boton:hover { filter: brightness(1.08); }
.boton:active { transform: translateY(1px); }
.enlace { font-weight: 600; }

/* ---------- Tablero de letras que giran (ver estacion.js) ---------- */

.paletas { display: flex; gap: 2px; }
.paleta {
  position: relative; display: grid; place-items: center; width: 23px; height: 36px; overflow: hidden; border-radius: 3px;
  background: linear-gradient(#2a2e37 0 50%, #22262e 50%); color: #f2ede1; font: 800 25px/1 var(--senal);
}
.paleta::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0c0e12; }
.paleta b { display: block; font-weight: 800; }
.paleta.gira b { animation: girar .07s linear; }
@keyframes girar { from { transform: scaleY(.1) translateY(-40%); filter: brightness(.6); } }
.paletas--ambar .paleta { color: var(--ambar); }
.vivo { animation: parpadeo 1.6s steps(1) infinite; }
@keyframes parpadeo { 70% { opacity: .35; } }
@media (max-width: 900px) { .paleta { width: 18px; height: 28px; font-size: 19px; } }

.anden-num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--color); color: var(--noche); font: 900 22px/1 var(--senal); }
.linea-1 { --color: var(--linea-1); }
.linea-2 { --color: var(--linea-2); }
.linea-3 { --color: var(--linea-3); }
.linea-0 { --color: var(--suave); }

/* Cartel de andén: número en círculo y destino. */
.cartel { display: flex; align-items: center; gap: 16px; }
.cartel__num { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--color); color: var(--noche); font: 900 40px/1 var(--senal); }
.cartel__texto small { display: block; color: var(--suave); font: 600 15px/1.2 var(--letra); }
.cartel__texto strong { display: block; color: var(--texto); font: 900 clamp(34px, 4vw, 48px)/1 var(--senal); }

.estado { display: inline-flex; align-items: center; gap: 8px; color: var(--ambar); font: 700 18px/1 var(--senal); letter-spacing: .05em; }
.estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.estado--tranquilo { color: var(--suave); }

/* ---------- Boleto para la prueba cerrada ---------- */

.boleto { display: grid; grid-template-columns: 1fr; max-width: 920px; color: var(--tinta); filter: drop-shadow(0 24px 40px rgb(0 0 0 / .4)); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
@media (hover: hover) { .boleto:hover { transform: translateY(-4px) rotate(-.6deg); } }
@media (min-width: 760px) { .boleto { grid-template-columns: 1fr 230px; } }
.boleto__cuerpo, .boleto__talon { padding: 30px 30px 28px; background: var(--papel); }
.boleto__cuerpo {
  border-radius: 14px 0 0 14px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
}
.boleto__talon {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border-radius: 0 14px 14px 0; border-left: 3px dashed #c7bfa9;
  transform-origin: 0 100%; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
}
/* Al pedir el boleto, el talón se corta un poco (estacion.js agrega .cortado). */
.boleto.cortado .boleto__talon { transform: translate(18px, 14px) rotate(7deg); }
@media (max-width: 759px) {
  .boleto.cortado .boleto__talon { transform: translate(6px, 16px) rotate(-3deg); }
  .boleto__talon { transform-origin: 0 0; }
  .boleto__cuerpo, .boleto__talon { border-radius: 14px; -webkit-mask: none; mask: none; }
  .boleto__cuerpo { border-radius: 14px 14px 0 0; }
  .boleto__talon { flex-direction: row; align-items: center; border-radius: 0 0 14px 14px; border-left: 0; border-top: 3px dashed #c7bfa9; }
  .boleto__talon .codigo { flex: 1; height: 54px; }
}
.boleto__marca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 18px; color: #6b6556; font: 800 16px/1 var(--senal); letter-spacing: .08em; }
.boleto__linea { display: inline-flex; align-items: center; gap: 8px; }
.boleto__linea i { width: 14px; height: 14px; border-radius: 50%; background: var(--linea-1); }
.boleto h2, .boleto h3 { color: var(--tinta); font-size: clamp(44px, 6vw, 72px); }
.boleto__datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 24px; margin: 22px 0 24px; padding: 16px 0; border-block: 2px solid #ddd5c1; }
.boleto__datos dt { color: #6b6556; font-size: 14px; font-weight: 600; }
.boleto__datos dd { margin: 0; font: 800 26px/1.1 var(--senal); }
.boleto p { max-width: 32em; color: #3c3a34; }
.boleto .boton { --color: var(--tinta); color: var(--papel); }
.talon__admite { font: 900 44px/.9 var(--senal); }
.talon__admite small { display: block; margin-top: 6px; color: #6b6556; font: 600 14px/1.3 var(--letra); }
.codigo { height: 70px; background: repeating-linear-gradient(90deg, var(--tinta) 0 3px, transparent 3px 5px, var(--tinta) 5px 6px, transparent 6px 10px, var(--tinta) 10px 14px, transparent 14px 16px); }

/* Formulario de inscripción dentro del boleto (lo envía estacion.js; sin JavaScript también funciona). */
.inscripcion__campos { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 560px) { .inscripcion__campos { grid-template-columns: 1.4fr 1fr; } }
.campo { display: grid; gap: 6px; }
.campo span { color: #6b6556; font-size: 14px; font-weight: 600; }
.campo small { font-size: inherit; font-weight: 400; }
.campo input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #c7bfa9; border-radius: 10px; background: #fffaf0; color: var(--tinta); font: 400 18px/1.2 var(--letra); }
.campo input::placeholder { color: #9d957f; }
.boleto :focus-visible { outline-color: var(--tinta); }
.campo input:focus-visible { border-color: var(--tinta); outline-offset: 1px; }
.campo input:user-invalid { border-color: #c2185b; }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.boleto p.inscripcion__legal { margin: 0 0 18px; color: #6b6556; font-size: 14px; }
.inscripcion__legal a { color: var(--tinta); }
.boleto p.inscripcion__estado { min-height: 1.4em; margin: 14px 0 0; color: var(--tinta); font-weight: 600; }
.boleto p.inscripcion__estado.error { color: #b0124c; }
.inscripcion.enviando .boton { opacity: .6; cursor: progress; }
.boleto.listo .inscripcion__campos, .boleto.listo .inscripcion__legal, .boleto.listo .inscripcion .boton { display: none; }
.boleto.listo p.inscripcion__estado { margin-top: 4px; font: 800 26px/1.15 var(--senal); }

/* ---------- Secciones ---------- */

.seccion-titulo { font-size: clamp(48px, 7vw, 96px); font-weight: 900; }
.seccion-entrada { max-width: 34em; margin: 16px 0 44px; color: var(--suave); font-size: 19px; }

/* ---------- Pie ---------- */

.pie { margin-top: 120px; border-top: 1px solid var(--borde); }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding-block: 36px 44px; color: var(--suave); font-size: 16px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pie nav a { color: var(--texto); }
.pie__red a { color: var(--texto); }

/* ---------- Páginas de texto (políticas) ---------- */

.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 28px; color: var(--suave); font-size: 16px; }
.migas a { color: var(--suave); }
.migas a:hover { color: var(--texto); }
.texto { max-width: 760px; padding-top: 8px; }
.texto h1 { margin: 18px 0 14px; font-size: clamp(44px, 7vw, 76px); font-weight: 900; }
.texto h2 { margin: 44px 0 10px; font-size: 30px; }
.texto p, .texto li { color: #d8d6d0; line-height: 1.65; }
.texto .fecha { color: var(--suave); }
.texto ul { padding-left: 1.2em; }
.texto li { margin-bottom: .45em; }
.texto li::marker { color: var(--linea-1); }
.texto a { color: #fff; text-decoration-color: var(--linea-1); text-decoration-thickness: 2px; }
.resumen { margin: 0 0 8px; padding: 18px 22px; border-radius: 10px; background: var(--anden); }
.texto hr { height: 0; margin: 64px 0; border: 0; border-top: 3px dashed var(--borde); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
