/* ==========================================================
   Recorré EL PULMÓN DE LA CIUDAD — Barrio Parque, Rosario
   Sistema visual: ver manual (colores, tipografías, iconografía)
   ========================================================== */

@font-face {
  font-family: "Terra Craft Sans";
  src: url("../assets/fonts/Terra-Craft-Sans.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Terra Craft Script";
  src: url("../assets/fonts/Terra-Craft-Script.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --verde: #1d492c;        /* color principal */
  --verde-osc: #133a1f;    /* color secundario */
  --crema: #ffffe6;        /* color principal */
  --marron: #492f13;       /* color secundario */

  --crema-2: #f4f2d4;      /* crema apagado para superficies */
  --crema-3: #e7e5c3;      /* bordes sobre crema */
  --verde-suave: #6f8a68;  /* textos secundarios sobre crema */
  --linea-crema: rgba(255, 255, 230, 0.22);

  --f-titulo: "Terra Craft Sans", Georgia, serif;
  --f-script: "Terra Craft Script", "Brush Script MT", cursive;
  --f-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 14px;
  --sombra: 0 10px 30px -12px rgba(19, 58, 31, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--verde-osc);
  color: var(--verde);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--marron); outline-offset: 3px; }
.sobre-verde :focus-visible { outline-color: var(--crema); }

/* ---------- Íconos (máscaras sobre currentColor) ---------- */
.ico {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  flex-shrink: 0;
}

/* ---------- Estructura general ---------- */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--crema);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.35);
}

.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--marron);
  color: var(--crema);
}
.barra .logo-mini { all: unset; cursor: pointer; display: flex; flex-direction: column; line-height: 0.95; }
.barra .logo-mini .s { font-family: var(--f-script); font-size: 13px; opacity: 0.9; }
.barra .logo-mini .t { font-family: var(--f-titulo); font-size: 15px; letter-spacing: 0.02em; }
.puntos { display: flex; gap: 5px; margin-left: auto; }
.puntos i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--crema); opacity: 0.55;
}
.puntos i.ok { background: var(--crema); opacity: 1; }
.puntos i.actual { opacity: 1; transform: scale(1.25); }
.barra .btn-mapa {
  all: unset; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--linea-crema);
}
.barra .btn-mapa svg { width: 18px; height: 18px; }

main { position: relative; }
.vista { animation: entrar 0.5s var(--ease) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Tipografía ---------- */
.script { font-family: var(--f-script); font-weight: 400; }
.titulo {
  font-family: var(--f-titulo); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em;
  line-height: 0.95; margin: 0;
}
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; margin: 0;
}
.lead { font-size: 17px; line-height: 1.5; margin: 0; }
.chico { font-size: 14px; color: var(--verde-suave); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border-radius: 999px; border: 2px solid var(--verde);
  background: var(--verde); color: var(--crema);
  font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s, color 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn.secundario { background: transparent; color: var(--verde); }
.btn.crema { background: var(--crema); color: var(--verde); border-color: var(--crema); }
.btn.crema-linea { background: transparent; color: var(--crema); border-color: var(--crema); }
.btn.marron { background: var(--marron); border-color: var(--marron); }
.btn.ancho { width: 100%; }
.btn .flecha { transition: transform 0.2s var(--ease); }
.btn:hover .flecha { transform: translateX(4px); }
.link {
  all: unset; cursor: pointer;
  font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; text-align: center;
}

/* ---------- Portada ---------- */
.portada {
  min-height: calc(100dvh);
  background: var(--verde);
  color: var(--crema);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 24px 32px;
}
.portada .deco {
  position: absolute; color: var(--verde-osc); pointer-events: none;
}
.portada .deco.palma { width: 128%; aspect-ratio: 513/383; right: -52%; top: 2%; transform: rotate(-6deg); }
.portada .deco.columna { width: 70%; aspect-ratio: 299/324; left: -32%; bottom: -8%; opacity: 0.8; }
.portada .contenido { position: relative; margin: auto 0; text-align: center; }
.logo .script { font-size: clamp(34px, 10vw, 46px); display: block; margin-bottom: 4px; }
.logo .titulo { font-size: clamp(44px, 13.2vw, 76px); }
.portada .lugar { font-weight: 600; margin: 22px 0 0; font-size: 16px; }
.portada .intro {
  max-width: 34ch; margin: 28px auto 0;
  font-size: 15px; opacity: 0.88;
}
.portada .acciones { position: relative; display: grid; gap: 14px; margin-top: 36px; }
.portada .iconos-fila {
  display: flex; justify-content: center; align-items: end; gap: 14px;
  margin-top: 34px; color: var(--crema); opacity: 0.9; flex-wrap: wrap;
}
.portada .iconos-fila .ico { height: 20px; }
@media (min-width: 420px) { .portada .iconos-fila .ico { height: 24px; } }

/* ---------- Cabecera de estación (estilo tótem) ---------- */
.cabecera {
  background: var(--verde); color: var(--crema);
  padding: 26px 24px 28px;
  position: relative; overflow: hidden;
}
.cabecera .numero {
  font-family: var(--f-titulo); font-size: 76px; line-height: 0.8;
  display: block;
}
.cabecera .fila { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cabecera .fila .ico { color: var(--crema); max-width: 46%; }
.cabecera .lugar-nombre { font-size: 20px; font-weight: 600; margin: 18px 0 0; line-height: 1.25; }
.cabecera hr { width: 64px; border: 0; border-top: 2px solid var(--crema); margin: 14px 0; opacity: 0.8; }
.cabecera .desc { font-size: 15px; margin: 0; opacity: 0.88; max-width: 42ch; }
.cabecera .deco-fondo {
  position: absolute; right: -18%; bottom: -24%; width: 70%;
  color: var(--verde-osc); opacity: 0.9; pointer-events: none;
}
.cabecera > *:not(.deco-fondo) { position: relative; }

.actividad { padding: 30px 24px 40px; }
.actividad .consigna {
  font-family: var(--f-titulo); text-transform: uppercase;
  font-size: clamp(30px, 8.6vw, 40px); line-height: 0.98; margin: 6px 0 14px;
}
.actividad .consigna + .lead { margin-bottom: 24px; }
.paso { animation: entrar 0.45s var(--ease) both; }
.separador { height: 1px; background: var(--crema-3); margin: 28px 0; border: 0; }

/* ---------- Chips / opciones ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 2px solid var(--verde); background: transparent; color: var(--verde);
  border-radius: 999px; padding: 10px 18px; min-height: 46px;
  font-family: var(--f-titulo); font-size: 20px; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { background: var(--verde); color: var(--crema); }

.campo {
  display: flex; gap: 8px; margin-top: 14px;
  border-bottom: 2px solid var(--verde); padding: 4px 0;
}
.campo input {
  flex: 1; border: 0; background: transparent; color: var(--verde);
  font-size: 17px; padding: 10px 0; outline: none; min-width: 0;
}
.campo input::placeholder { color: var(--verde-suave); }
.campo label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.opciones-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opcion {
  border: 2px solid var(--crema-3); background: var(--crema-2);
  border-radius: var(--radio); padding: 16px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  text-align: left; min-height: 104px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s var(--ease);
}
.opcion:active { transform: scale(0.97); }
.opcion svg { width: 30px; height: 30px; }
.opcion .nom { font-family: var(--f-titulo); font-size: 22px; text-transform: uppercase; line-height: 1; }
.opcion[aria-pressed="true"] { border-color: var(--verde); background: var(--verde); color: var(--crema); }

/* ---------- Desbloqueo ---------- */
.desbloqueo {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(19, 58, 31, 0.6);
  display: grid; place-items: end center;
  animation: fade 0.3s both;
}
@keyframes fade { from { opacity: 0; } }
.desbloqueo .hoja {
  width: 100%; max-width: 560px;
  background: var(--verde); color: var(--crema);
  border-radius: 26px 26px 0 0;
  padding: 30px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  animation: subir 0.55s var(--ease) both;
}
@keyframes subir { from { transform: translateY(100%); } }
.desbloqueo .palabra {
  font-family: var(--f-titulo); font-size: clamp(48px, 15vw, 72px);
  line-height: 0.95; margin: 8px 0 6px;
  animation: palabra 0.7s 0.25s var(--ease) both;
}
@keyframes palabra { from { opacity: 0; transform: scale(0.85); letter-spacing: 0.2em; } }
.desbloqueo .ico { display: block; height: 42px; width: auto; max-width: 130px; margin: 0 auto 14px; color: var(--crema); }
.desbloqueo p { margin: 0 auto; max-width: 34ch; opacity: 0.9; }
.desbloqueo .acciones { display: grid; gap: 12px; margin-top: 24px; }

/* ---------- Cadena de identidades ---------- */
.cadena { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cadena .w {
  font-family: var(--f-titulo); font-size: 18px; text-transform: uppercase; line-height: 1;
  padding: 7px 11px 6px; border-radius: 6px;
  background: var(--crema-2); border: 1.5px solid var(--crema-3);
}
.cadena .w.vacia { color: var(--verde-suave); border-style: dashed; background: transparent; }
.cadena .w.primera { background: var(--marron); color: var(--crema); border-color: var(--marron); }
.cadena .sep { font-size: 14px; opacity: 0.6; }
.sobre-verde .cadena .w { background: transparent; border-color: var(--linea-crema); color: var(--crema); }
.sobre-verde .cadena .w.primera { background: var(--crema); color: var(--verde); border-color: var(--crema); }

/* ---------- Mapa del recorrido ---------- */
.mapa-intro { background: var(--verde); color: var(--crema); padding: 28px 24px 30px; }
.mapa-intro .titulo { font-size: 44px; margin-top: 4px; }
.mapa-intro p { opacity: 0.88; margin: 12px 0 18px; font-size: 15px; }
.estaciones { list-style: none; margin: 0; padding: 26px 20px 40px; position: relative; }
.estaciones::before {
  content: ""; position: absolute; left: 59px; top: 60px; bottom: 80px;
  border-left: 2px dashed var(--crema-3);
}
.estacion-item { position: relative; margin-bottom: 12px; }
.estacion-item a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px; border-radius: var(--radio);
  text-decoration: none; color: inherit;
  background: var(--crema); border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.estacion-item a:hover { border-color: var(--crema-3); background: var(--crema-2); }
.estacion-item .num {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--crema); border: 2px solid var(--verde);
  font-family: var(--f-titulo); font-size: 24px;
  position: relative; z-index: 1;
}
.estacion-item.hecha .num { background: var(--verde); color: var(--crema); }
.estacion-item.siguiente .num { box-shadow: 0 0 0 5px rgba(29, 73, 44, 0.15); animation: latido 2s infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 10px rgba(29, 73, 44, 0.05); } }
.estacion-item .info { flex: 1; min-width: 0; }
  .estacion-item .nombre, .estacion-item .sub { display: block; }
.estacion-item .nombre { font-weight: 700; font-size: 16px; line-height: 1.2; }
.estacion-item .sub { font-size: 13px; color: var(--verde-suave); margin-top: 2px; }
.estacion-item .sub b { color: var(--marron); font-family: var(--f-titulo); font-weight: 400; font-size: 15px; letter-spacing: 0.02em; }
.estacion-item .ico { width: 58px; height: 34px; opacity: 0.95; }

/* ---------- 2 · Parque colectivo ---------- */
.parque-svg {
  width: 100%; height: auto; display: block;
  border-radius: var(--radio); background: var(--crema-2);
  touch-action: manipulation; cursor: crosshair;
  border: 2px solid var(--crema-3);
}
.parque-svg .marca { transform-box: fill-box; transform-origin: center; }
.parque-svg .marca.nueva { animation: plantar 0.7s var(--ease) both; }
@keyframes plantar { 0% { transform: translateY(-40px) scale(0.3); opacity: 0; } 60% { transform: translateY(2px) scale(1.15); opacity: 1; } }
.parque-svg .marca.mia circle { fill: var(--marron); stroke: var(--crema); }
.parque-svg .marca.mia use { color: var(--crema); }
.leyenda { display: grid; gap: 8px; margin-top: 18px; }
.barra-dato { display: grid; grid-template-columns: 26px 96px 1fr 38px; align-items: center; gap: 10px; font-size: 14px; }
.barra-dato svg { width: 22px; height: 22px; }
.barra-dato .pista { height: 10px; border-radius: 6px; background: var(--crema-3); overflow: hidden; }
.barra-dato .lleno { display: block; height: 100%; background: var(--verde); border-radius: 6px; transition: width 0.9s var(--ease); }
.barra-dato.mia .lleno { background: var(--marron); }
.barra-dato .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--verde-suave); }
.ayuda-flotante {
  display: flex; gap: 10px; align-items: center;
  background: var(--verde); color: var(--crema);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px;
}
.ayuda-flotante .ficha {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--marron); display: grid; place-items: center;
}
.ayuda-flotante .ficha svg { width: 20px; height: 20px; }

/* ---------- 3 · Obra ---------- */
.obra {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 10px solid var(--marron);
  box-shadow: var(--sombra);
  background: var(--crema-2);
}
.obra::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 230, 0.25), inset 0 0 40px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.obra svg, .obra img { width: 100%; height: auto; display: block; }
.obra-ficha { font-size: 13px; color: var(--verde-suave); margin: 10px 0 24px; font-style: italic; }
.cita {
  font-family: var(--f-script); font-size: clamp(28px, 7.4vw, 34px); line-height: 1.15;
  margin: 26px 0; color: var(--marron);
}
.miradas { display: grid; gap: 10px; }
.mirada { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.mirada .lbl { font-weight: 600; font-size: 15px; }
.mirada .pct { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--verde-suave); }
.mirada .pista { display: block; grid-column: 1 / -1; height: 8px; border-radius: 6px; background: var(--crema-3); overflow: hidden; }
.mirada .lleno { display: block; height: 100%; background: var(--verde); border-radius: 6px; transition: width 1s var(--ease); }
.mirada.mia .lbl::after { content: " · tu mirada"; color: var(--marron); font-weight: 700; }
.mirada.mia .lleno { background: var(--marron); }
.voces { display: grid; gap: 10px; margin-top: 18px; }
.voz {
  background: var(--crema-2); border-left: 3px solid var(--verde);
  padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 15px;
}

/* ---------- 4 · Laguito ---------- */
.mision {
  background: var(--verde); color: var(--crema);
  border-radius: 18px; padding: 22px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.mision .eyebrow { opacity: 0.8; }
.mision .titulo { font-size: clamp(40px, 12vw, 56px); margin: 10px 0 14px; }
.mision .sello {
  width: 150px; margin: 6px auto 4px; padding: 14px 16px;
  background: var(--crema); color: var(--verde); border-radius: 12px;
  display: grid; justify-items: center; gap: 6px;
}
.mision .sello .ico { width: 110px; height: 40px; }
.mision .sello small { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mision p { font-size: 14px; opacity: 0.88; margin: 12px auto 0; max-width: 32ch; }
.pistas-lista { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pistas-lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.pistas-lista li::before {
  content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  background: var(--marron); flex-shrink: 0;
}
.acciones-col { display: grid; gap: 12px; }
.escaner {
  position: relative; border-radius: 18px; overflow: hidden; background: #000;
  aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto;
}
.escaner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.escaner .visor {
  position: absolute; inset: 18%; border: 3px solid var(--crema); border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(19, 58, 31, 0.45);
}
.escaner .visor::after {
  content: ""; position: absolute; left: 8%; right: 8%; height: 2px; top: 10%;
  background: var(--crema); animation: barrer 2s ease-in-out infinite alternate;
}
@keyframes barrer { to { top: 88%; } }
.escaner .estado {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  color: var(--crema); font-size: 14px; font-weight: 600;
}
.escena { border-radius: 18px; overflow: hidden; border: 2px solid var(--crema-3); position: relative; }
.escena svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.escena .objeto { cursor: pointer; }
.escena .bote { animation: flotar 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.escena .bote:nth-of-type(2n) { animation-duration: 4s; animation-delay: -1s; }
@keyframes flotar { 50% { transform: translateY(-3px) rotate(-2deg); } }
.toast {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: var(--marron); color: var(--crema); padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; animation: entrar 0.3s both;
}
.encontrado { animation: encontrado 0.9s var(--ease) both; }
@keyframes encontrado { 30% { transform: scale(1.6); } 100% { transform: scale(1.25); } }
.error-msg { color: #8a2a12; font-size: 14px; font-weight: 600; margin: 8px 0 0; }

/* ---------- 5 · Rosedal ---------- */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  border: 2px dashed var(--verde); background: var(--crema-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 8px; text-align: center;
}
.slot svg { width: 32px; height: 32px; }
.slot .nom { font-family: var(--f-titulo); font-size: clamp(12px, 3.4vw, 17px); text-transform: uppercase; line-height: 1; max-width: 100%; overflow-wrap: anywhere; }
.slot .hint { font-size: 11px; color: var(--verde-suave); line-height: 1.25; }
.slot.lleno { border-style: solid; padding: 0; }
.slot.lleno img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.lleno .etq {
  position: absolute; left: 6px; bottom: 6px; background: var(--verde); color: var(--crema);
  font-family: var(--f-titulo); font-size: clamp(10px, 2.9vw, 13px); padding: 4px 6px 3px; border-radius: 5px; text-transform: uppercase; max-width: calc(100% - 12px); overflow: hidden;
}
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slot .rehacer {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--crema); color: var(--verde); border: 0; display: grid; place-items: center; z-index: 2;
  font-size: 15px; line-height: 1;
}
.segmentado {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--verde); border-radius: 999px; padding: 3px; gap: 3px; margin: 14px 0;
}
.segmentado button {
  border: 0; background: transparent; border-radius: 999px; padding: 10px 6px;
  font-weight: 600; font-size: 14px; color: var(--verde);
}
.segmentado button[aria-pressed="true"] { background: var(--verde); color: var(--crema); }
.lienzo-wrap { border-radius: 10px; overflow: hidden; box-shadow: var(--sombra); }
.lienzo-wrap canvas { width: 100%; height: auto; display: block; }

/* ---------- 6 · Oroño ---------- */
.pistas { display: grid; gap: 12px; }
.pista-card {
  border-radius: 16px; padding: 18px; border: 2px solid var(--crema-3);
  background: var(--crema-2); position: relative; overflow: hidden;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.pista-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pista-card .orden { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verde-suave); }
.pista-card .frase { font-family: var(--f-titulo); font-size: 28px; text-transform: uppercase; line-height: 1; margin: 8px 0 0; }
.pista-card .detalle { font-size: 14px; margin: 10px 0 0; }
.pista-card.bloqueada { opacity: 0.45; }
.pista-card.bloqueada .frase { filter: blur(5px); }
.pista-card.activa { border-color: var(--verde); background: var(--crema); box-shadow: var(--sombra); }
.pista-card.hecha { background: var(--verde); color: var(--crema); border-color: var(--verde); }
.pista-card.hecha .orden { color: var(--crema); opacity: 0.7; }
.pista-card .revelada {
  font-family: var(--f-titulo); font-size: 34px; line-height: 1; margin-top: 12px;
  display: inline-block; padding: 6px 12px 4px; border: 2px solid var(--crema); border-radius: 8px;
  animation: palabra 0.6s var(--ease) both;
}
.mantener {
  position: relative; width: 100%; margin-top: 16px; min-height: 56px;
  border-radius: 999px; border: 2px solid var(--verde); background: var(--crema);
  overflow: hidden; font-weight: 700; color: var(--verde);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.mantener { display: grid; place-items: center; padding: 0 16px; }
.mantener .relleno {
  position: absolute; inset: 0; background: var(--verde); color: var(--crema);
  display: grid; place-items: center; padding: 0 16px;
  clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0);
}
.ecuacion {
  background: var(--verde); color: var(--crema); border-radius: 18px;
  padding: 26px 18px; text-align: center; margin-top: 18px;
}
.ecuacion .linea {
  font-family: var(--f-titulo); line-height: 1.05;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px;
}
.ecuacion .linea span { opacity: 0; animation: palabra 0.6s var(--ease) forwards; }
.ecuacion .grande { font-size: clamp(46px, 14vw, 64px); width: 100%; }
.ecuacion .op { font-family: var(--f-texto); font-weight: 300; font-size: 26px; opacity: 0.7; }
.ecuacion .med { font-size: clamp(24px, 7vw, 30px); }

/* ---------- 7 · Hipódromo ---------- */
.tiempos { display: grid; gap: 10px; }
.tiempo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 16px; padding: 18px 20px; border: 2px solid var(--verde);
  background: transparent; color: var(--verde); text-align: left;
  transition: background 0.25s, color 0.25s;
}
.tiempo .t { font-family: var(--f-titulo); font-size: 34px; line-height: 1; }
.tiempo .s { font-size: 13px; opacity: 0.75; display: block; margin-top: 4px; }
.tiempo[aria-pressed="true"] { background: var(--verde); color: var(--crema); }
.tiempo .flecha { font-size: 22px; }
.historia {
  margin-top: 16px; border-radius: 18px; overflow: hidden; background: var(--crema-2);
  border: 2px solid var(--crema-3);
}
.historia .img { background: var(--verde); color: var(--crema); padding: 22px; position: relative; }
.historia .img .ico { width: 100%; height: 130px; }
.historia .img .anio {
  position: absolute; left: 16px; top: 12px; font-family: var(--f-titulo); font-size: 28px;
  background: var(--marron); padding: 4px 10px 2px; border-radius: 6px;
}
.historia .cuerpo { padding: 20px; }
.historia h3 { font-family: var(--f-titulo); font-size: 28px; text-transform: uppercase; font-weight: 400; line-height: 1; margin: 0 0 10px; }
.historia p { margin: 0 0 10px; font-size: 15px; }
.historia .fuente { font-size: 12px; color: var(--verde-suave); margin: 0; }
.sepia .ico { filter: none; }
.historia.pasado .img { background: var(--marron); }
.historia.pasado .img .anio { background: var(--verde); }

/* ---------- 8 · Barrio Parque / final ---------- */
.reencuentro {
  background: var(--verde); color: var(--crema); border-radius: 20px;
  padding: 26px 22px; text-align: center;
}
.reencuentro .eyebrow { opacity: 0.8; }
.reencuentro .palabra { font-family: var(--f-titulo); font-size: clamp(54px, 17vw, 80px); line-height: 0.95; margin: 22px 0 14px; }
.mini-iconos { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 10px; align-items: center; justify-items: center; color: var(--crema); }
.mini-iconos .ico { height: 24px; }
.reencuentro .pregunta { font-size: 17px; margin: 0; }
.reencuentro .acciones { display: grid; gap: 10px; margin-top: 22px; }
.circulo-iconos { position: relative; width: 210px; height: 210px; margin: 6px auto 0; color: var(--crema); }
.circulo-iconos .ico { position: absolute; width: 50px; height: 32px; }
.circulo-iconos .centro {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--f-titulo); font-size: 28px; line-height: 0.95;
}
.final { background: var(--verde); color: var(--crema); min-height: calc(100dvh - 54px); padding: 32px 24px 44px; position: relative; overflow: hidden; }
.final .deco { position: absolute; color: var(--verde-osc); pointer-events: none; }
.final .deco.palma { width: 110%; aspect-ratio: 513/383; right: -55%; top: -4%; }
.final > *:not(.deco) { position: relative; }
.final .script { font-size: 34px; line-height: 1.1; margin: 0; }
.final .palabra-final { font-family: var(--f-titulo); font-size: clamp(64px, 21vw, 104px); line-height: 0.9; margin: 14px 0 18px; word-break: break-word; }
.final .definicion { font-size: 18px; line-height: 1.5; margin: 0 0 26px; max-width: 36ch; }
.final .definicion b { font-weight: 700; }
.final .bloque { border-top: 1px solid var(--linea-crema); padding-top: 20px; margin-top: 24px; }
.final .acciones { display: grid; gap: 12px; margin-top: 28px; }
.otros-finales { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.otros-finales span {
  font-family: var(--f-titulo); text-transform: uppercase; font-size: 16px;
  border: 1.5px solid var(--linea-crema); border-radius: 999px; padding: 6px 12px 4px; opacity: 0.85;
}

.pie { padding: 24px; text-align: center; font-size: 12px; color: var(--verde-suave); }

/* ---------- Escritorio ---------- */
@media (min-width: 700px) {
  body {
    background:
      radial-gradient(circle at 15% 20%, rgba(255,255,230,0.05), transparent 40%),
      var(--verde-osc);
  }
  .app { margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 28px; overflow: hidden; }
  .portada, .final { min-height: calc(100dvh - 48px); }
  .barra { position: sticky; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
