/* ============================================================
   sacalacuenta · home.css (16/10/2026)
   ------------------------------------------------------------
   Estilos que son SOLO de la portada (index.html). Lo compartido
   (tokens, botones, menú, formularios, pie) vive en base.css.

   Estructura de la portada, de arriba a abajo:
     1. Hero: el mensaje + una calculadora real con barras
     2. Realidad: 4 números del sector (bento)
     3. Caso: la carta de Gonzalo
     4. Cómo funciona: 4 pasos que se apilan al scrollear
     5. Funciones: en solapas, para no mostrar 30 viñetas juntas
     6. Preguntas frecuentes
     7. Cierre: panel de acento
     8. Apoyá el proyecto (cafecito.app) + sugerencias
   ============================================================ */

/* La luz del hero se sale del borde a propósito: se recorta (clip no rompe los sticky) */
body { overflow-x: clip; }

/* Etiqueta chica sobre un título (se usa poco: solo donde ayuda) */
.antetitulo {
  display: block;
  font-size: var(--txt-sm);
  font-weight: 500;
  color: var(--tinta-suave);
  margin-bottom: 12px;
}

/* ============================================================
   1) HERO
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 7vh, 72px) 0 0;
}
/* En compu, el hero ocupa justo la primera pantalla (sin el menú de 64 px):
   el mensaje y la calculadora se ven enteros, al 100% y al 90% de zoom. */
@media (min-width: 981px) {
  .hero { min-height: calc(100svh - 64px); padding: clamp(20px, 4vh, 48px) 0; }
}
/* Una sola luz suave detrás de la calculadora: dirige la mirada sin brillar */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10% -20% auto 30%;
  height: 120%;
  background: radial-gradient(closest-side, oklch(0.8 0.12 225 / 0.1), transparent);
  pointer-events: none;
}

.hero-gancho {
  font-size: var(--txt-base);
  font-weight: 500;
  color: var(--tinta-suave);
  margin: 0 0 18px;
  max-width: 30em;
  text-wrap: balance;
}
.titulo-hero {
  font-size: clamp(2.3rem, 4.5vw, 3.9rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.titulo-hero .linea { display: block; }
.hero .lead { max-width: 27em; margin-bottom: 0; }
.hero-acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-nota { margin: 14px 0 0; font-size: var(--txt-sm); color: var(--tinta-suave); }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero::before { inset: 40% -20% auto -20%; }
  .titulo-hero { max-width: 14em; }
}
@media (max-width: 560px) {
  .hero { padding-top: 28px; }
  .hero-gancho { font-size: var(--txt-sm); margin-bottom: 14px; }
  .titulo-hero { font-size: clamp(2.05rem, 9.4vw, 2.5rem); }
  .hero .lead { font-size: var(--txt-base); }
  .hero-acciones { flex-direction: column; margin-top: 26px; }
  .hero-acciones .boton { width: 100%; }
}

/* ---------- La calculadora en vivo del hero ----------
   Es real: mové las barras y los números cambian al instante.
   Los umbrales (30% y 40%) son los mismos que usa la app. */
.vivo {
  background: var(--papel);
  border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 18px;
}
.vivo-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vivo-plato { margin: 0; font-size: var(--txt-lg); font-weight: 650; letter-spacing: -0.015em; }
.vivo-ejemplo {
  flex: none; font-size: var(--txt-xs); color: var(--tinta-suave);
  border: 1px solid var(--borde-fuerte); border-radius: var(--radio-pastilla); padding: 5px 12px;
}

.vivo-campo { display: grid; gap: 10px; }
.vivo-etiqueta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--txt-sm); color: var(--tinta-suave); }
.vivo-etiqueta output { color: var(--tinta); font-weight: 650; font-size: var(--txt-base); font-variant-numeric: tabular-nums; }

/* Barra deslizable: el tramo recorrido se pinta con el acento */
.vivo input[type="range"] {
  --pct: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
  touch-action: pan-y;
}
.vivo input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--acento) var(--pct), var(--borde-fuerte) var(--pct));
}
.vivo input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--borde-fuerte); }
.vivo input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--acento); }
.vivo input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--tinta); border: 4px solid var(--acento);
  transition: transform 140ms var(--ease-salida);
}
.vivo input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--tinta); border: 4px solid var(--acento);
}
.vivo input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.vivo input[type="range"]:focus-visible { outline: none; }
.vivo input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--foco); }
.vivo input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: var(--foco); }

.vivo-resultado { border-top: 1px solid var(--borde); padding-top: 18px; display: grid; gap: 14px; }
/* El monto y el estado en la misma fila: ahorra alto sin perder jerarquía */
.vivo-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.vivo-estado {
  margin: 0; display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 7px 14px; border-radius: var(--radio-pastilla);
  font-size: var(--txt-sm); font-weight: 600;
  transition: background-color 200ms ease, color 200ms ease;
}
.vivo-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vivo[data-estado="verde"] .vivo-estado { background: var(--verde-fondo); color: var(--verde); }
.vivo[data-estado="amarillo"] .vivo-estado { background: var(--ambar-fondo); color: var(--ambar); }
.vivo[data-estado="rojo"] .vivo-estado { background: var(--rojo-fondo); color: var(--rojo); }

.vivo-grande { margin: 0; font-size: clamp(2rem, 4.2vw, 2.7rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.vivo-grande small { display: block; margin-top: 8px; font-size: var(--txt-sm); font-weight: 400; letter-spacing: 0; color: var(--tinta-suave); }

/* El medidor: tres zonas (verde, ámbar, rojo) y una marca que se desplaza.
   Las etiquetas están justo debajo de donde empieza cada zona (30% y 40%). */
.vivo-medidor { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(to right,
  var(--verde-borde) 0 50%, var(--ambar-borde) 50% 66.67%, var(--rojo-borde) 66.67% 100%); }
.vivo-marca {
  position: absolute; top: -5px; bottom: -5px; left: var(--pos, 0%); width: 4px; margin-left: -2px;
  border-radius: 2px; background: var(--tinta); box-shadow: 0 0 0 3px var(--papel); pointer-events: none;
}
.vivo-escala { position: relative; height: 18px; margin-top: 10px; font-size: var(--txt-xs); color: var(--tinta-tenue); font-variant-numeric: tabular-nums; }
.vivo-escala span { position: absolute; top: 0; transform: translateX(-50%); }
.vivo-escala span:first-child { transform: none; }
.vivo-escala span:last-child { transform: translateX(-100%); }

.vivo-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.vivo-datos div { background: var(--superficie); border-radius: var(--radio-chico); padding: 12px 14px; }
.vivo-datos dt { font-size: var(--txt-xs); color: var(--tinta-suave); margin-bottom: 2px; }
.vivo-datos dd { margin: 0; font-size: var(--txt-lg); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }

/* De dónde salen los números del ejemplo: una línea chica, se abre si querés */
.vivo-fuente { border-top: 1px solid var(--borde); padding-top: 12px; margin-top: -4px; font-size: var(--txt-xs); color: var(--tinta-suave); }
.vivo-fuente summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  min-height: 24px; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--borde-fuerte);
}
.vivo-fuente summary::-webkit-details-marker { display: none; }
.vivo-fuente summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.vivo-fuente[open] summary::after { transform: translateY(1px) rotate(225deg); }
@media (hover: hover) and (pointer: fine) { .vivo-fuente summary:hover { color: var(--tinta); } }
.vivo-fuente-cuerpo { padding-top: 10px; display: grid; gap: 10px; }
.vivo-fuente-cuerpo p { margin: 0; line-height: 1.5; }
.vivo-fuente-cuerpo strong { color: var(--tinta); font-weight: 600; }
.vivo-fuente table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vivo-fuente caption { text-align: left; color: var(--tinta); font-weight: 600; padding-bottom: 6px; }
.vivo-fuente th { text-align: left; font-weight: 500; color: var(--tinta-tenue); padding: 4px 6px 4px 0; border-bottom: 1px solid var(--borde); }
.vivo-fuente td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--borde); }
.vivo-fuente .num { text-align: right; padding-left: 12px; white-space: nowrap; }
.vivo-fuente td:last-child, .vivo-fuente th:last-child { padding-right: 0; }

/* Pantallas de compu bajas (notebook al 100%, o 1366 px): todo un poco más compacto
   para que la calculadora entre entera sin scrollear */
@media (min-width: 981px) and (max-height: 760px) {
  .vivo { padding: 20px 24px; gap: 14px; }
  .vivo-campo { gap: 6px; }
  .vivo-resultado { padding-top: 14px; gap: 10px; }
  .vivo-grande { font-size: 2.2rem; }
  .vivo-grande small { margin-top: 6px; }
  .vivo-datos div { padding: 9px 12px; }
  .vivo-datos dd { font-size: var(--txt-base); }
  .hero-gancho { margin-bottom: 12px; }
  .titulo-hero { font-size: clamp(2.3rem, 4.1vw, 3.4rem); margin-bottom: 18px; }
  .hero-acciones { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .vivo input[type="range"]::-webkit-slider-thumb, .vivo-estado { transition: none; }
}

/* ============================================================
   2) REALIDAD DEL SECTOR (bento de 4 números)
   ============================================================ */
.realidad-grilla {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 12px;
}
.stat {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.stat-numero { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-numero sup { font-size: 0.4em; font-weight: 500; color: var(--tinta-tenue); margin-left: 3px; }
.stat-label { color: var(--tinta-suave); font-size: var(--txt-sm); max-width: 28em; }
/* La tarjeta principal: la rentabilidad, que es la que duele */
.stat.principal {
  grid-row: 1 / span 3;
  background: linear-gradient(160deg, var(--acento-suave), var(--papel) 70%);
  border-color: oklch(0.42 0.07 235);
  justify-content: space-between;
  min-height: 300px;
}
.stat.principal .stat-numero { font-size: clamp(3.4rem, 8vw, 6rem); letter-spacing: -0.045em; color: var(--tinta); }
.stat.principal .stat-label { font-size: var(--txt-base); color: var(--tinta); }
.stat.principal .stat-contexto { margin: 0; color: var(--tinta-suave); font-size: var(--txt-sm); max-width: 24em; }
/* La caída de la rentabilidad, en dos barras (sin pista de fondo: solo el largo compara) */
.caida { display: grid; gap: 12px; margin: 28px 0; max-width: 520px; }
.caida-fila { display: grid; grid-template-columns: 56px minmax(0, 1fr) 72px; align-items: center; gap: 14px; font-size: var(--txt-sm); color: var(--tinta-suave); }
.caida-barra { height: 14px; width: var(--w); border-radius: 999px; transform-origin: left center; }
.caida-barra.antes { background: var(--borde-fuerte); }
.caida-barra.hoy { background: var(--acento); }
.caida-fila b { color: var(--tinta); font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .realidad-grilla { grid-template-columns: 1fr; grid-template-rows: none; }
  .stat.principal { grid-row: auto; min-height: 0; gap: 28px; }
}
.fuentes { margin-top: 20px; font-size: var(--txt-sm); color: var(--tinta-tenue); }
.fuentes summary { cursor: pointer; width: fit-content; color: var(--tinta-suave); padding: 6px 0; }
.fuentes summary:hover { color: var(--tinta); }
.fuentes p { margin: 8px 0; max-width: 62ch; }
.fuentes ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; max-width: 62ch; }

/* ============================================================
   3) CASO: la carta de Gonzalo
   ============================================================ */
.caso-grilla {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.caso-grilla .seccion-encabezado { position: sticky; top: 100px; margin-bottom: 0; }
.caso-parrafo { color: var(--tinta-suave); margin: 0 0 22px; }
.caso-parrafo strong { color: var(--tinta); }
.caso-hallazgos { display: grid; gap: 12px; margin: 28px 0; }
.caso-hallazgo { border-radius: var(--radio); padding: 22px 24px; border: 1px solid transparent; }
.caso-hallazgo.mal  { background: var(--rojo-fondo);  border-color: var(--rojo-borde); }
.caso-hallazgo.bien { background: var(--verde-fondo); border-color: var(--verde-borde); }
.caso-hallazgo-titulo { display: flex; align-items: center; gap: 10px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.caso-hallazgo.mal .caso-hallazgo-titulo { color: var(--rojo); }
.caso-hallazgo.bien .caso-hallazgo-titulo { color: var(--verde); }
.caso-hallazgo p { margin: 0; color: var(--tinta); font-size: var(--txt-sm); line-height: 1.6; }
/* Punto de estado: acompaña un texto, nunca va solo */
.punto-estado { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
@media (max-width: 860px) {
  .caso-grilla { grid-template-columns: 1fr; }
  .caso-grilla .seccion-encabezado { position: static; margin-bottom: 8px; }
}

/* ============================================================
   4) CÓMO FUNCIONA: pasos que se apilan al scrollear (CSS puro)
   ------------------------------------------------------------
   Cada paso queda "pegado" (sticky) y el siguiente se apoya
   encima. Sin JavaScript: se ve igual con "reducir movimiento".
   ============================================================ */
.pasos { display: grid; gap: 28px; }
.paso {
  position: sticky;
  top: calc(84px + var(--n, 0) * 14px);
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--papel);
  border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio);
  padding: clamp(20px, 3.4vw, 40px);
}
.paso-numero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--acento); color: var(--sobre-acento);
  font-size: var(--txt-sm); font-weight: 700; margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.paso h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
.paso p { margin: 0; color: var(--tinta-suave); }
.paso-imagen { margin: 0; }
/* La captura nunca es más alta que la pantalla: así el paso entero se ve sin scrollear */
.paso-imagen img { display: block; width: auto; max-width: 100%; max-height: calc(100svh - 290px); min-height: 280px; margin-inline: auto; object-fit: contain; border-radius: var(--radio-chico); border: 1px solid var(--borde-fuerte); background: var(--fondo); }
@media (max-width: 860px) {
  .paso { position: static; grid-template-columns: 1fr; }
}

/* ============================================================
   5) FUNCIONES: tres solapas
   ============================================================ */
.solapas { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; background: var(--superficie); border-radius: var(--radio-pastilla); margin-bottom: 28px; }
.solapa {
  font: inherit; font-size: var(--txt-sm); font-weight: 600; cursor: pointer; border: none;
  padding: 11px 20px; border-radius: var(--radio-pastilla); background: transparent; color: var(--tinta-suave);
  transition: background-color 180ms ease, color 180ms ease, transform 120ms ease-out;
}
.solapa:active { transform: scale(0.97); }
.solapa[aria-selected="true"] { background: var(--acento); color: var(--sobre-acento); }
@media (hover: hover) and (pointer: fine) { .solapa[aria-selected="false"]:hover { color: var(--tinta); } }
@media (max-width: 640px) { .solapas { width: 100%; border-radius: var(--radio); } .solapa { flex: 1 1 100%; text-align: left; border-radius: 12px; } }

.funciones-grupo { margin-bottom: 40px; }
.funciones-grupo > h3 { margin: 0 0 18px; font-size: var(--txt-h3); font-weight: 650; letter-spacing: -0.02em; }
/* Con JavaScript: se ve un grupo a la vez. Sin JavaScript: se ven los tres. */
.js .funciones-grupo { display: none; margin-bottom: 0; }
.js .funciones-grupo.activo { display: block; animation: aparecer 380ms var(--ease-salida) both; }
.js .funciones-grupo > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.funciones-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.funciones-lista li {
  background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 18px 20px; color: var(--tinta-suave); font-size: var(--txt-sm); line-height: 1.55;
}
.funciones-lista strong { display: block; color: var(--tinta); font-size: var(--txt-base); font-weight: 650; margin-bottom: 4px; letter-spacing: -0.01em; }
@media (max-width: 760px) { .funciones-lista { grid-template-columns: 1fr; } }

/* ============================================================
   6) PREGUNTAS FRECUENTES
   ============================================================ */
.preguntas { max-width: 760px; border-top: 1px solid var(--borde); }
.pregunta { border-bottom: 1px solid var(--borde); }
.pregunta summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-size: var(--txt-lg); font-weight: 600; letter-spacing: -0.01em;
  transition: color 180ms ease;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--tinta-suave); border-bottom: 2px solid var(--tinta-suave);
  transform: translateY(-3px) rotate(45deg); transition: transform 220ms var(--ease-salida);
}
.pregunta[open] summary::after { transform: translateY(2px) rotate(225deg); }
@media (hover: hover) and (pointer: fine) { .pregunta summary:hover { color: var(--acento); } }
.pregunta-respuesta { padding: 0 4px 24px; color: var(--tinta-suave); max-width: 62ch; }
.pregunta-respuesta p { margin: 0 0 12px; }
.pregunta-respuesta p:last-child { margin-bottom: 0; }

/* ============================================================
   7) CIERRE: el único bloque de color pleno de toda la portada
   ============================================================ */
.captura { padding: var(--seccion) 0 0; }
.captura-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--acento);
  color: var(--sobre-acento);
  border-radius: var(--radio);
  padding: clamp(28px, 5vw, 64px);
}
.captura-panel .titulo-seccion { color: var(--sobre-acento); }
.captura-panel .lead { color: oklch(0.25 0.04 240); margin-bottom: 28px; }
.captura-panel .pasos-entrada li { color: oklch(0.28 0.04 240); }
.captura-panel .pasos-entrada strong { color: var(--sobre-acento); }
.captura-panel .pasos-entrada li::before { border-color: oklch(0.3 0.05 240 / 0.5); color: var(--sobre-acento); }
@media (max-width: 860px) { .captura-panel { grid-template-columns: 1fr; } }

/* ============================================================
   8) APOYÁ EL PROYECTO: la historia a la izquierda, el botón de cafecito a la derecha.
   Sin color pleno (eso es del cierre): una tarjeta con borde, como el resto.
   ============================================================ */
.apoyo-grilla {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.apoyo-historia .titulo-seccion { margin-bottom: 26px; max-width: 16em; text-wrap: balance; }
.apoyo-autor { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.apoyo-autor img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--borde-fuerte); }
.apoyo-autor p { margin: 0; display: grid; gap: 2px; }
.apoyo-autor strong { font-size: var(--txt-base); }
.apoyo-autor span { font-size: var(--txt-sm); color: var(--tinta-suave); }
.apoyo-historia .prosa p { color: var(--tinta-suave); max-width: 56ch; }

.apoyo-tarjeta {
  background: var(--papel);
  border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio);
  padding: clamp(22px, 3vw, 32px);
}
.apoyo-tarjeta h3 { margin: 0 0 18px; font-size: var(--txt-h3); letter-spacing: -0.015em; }
.apoyo-bajada { margin: 0 0 18px; font-size: var(--txt-sm); color: var(--tinta-suave); }
/* Botón oficial de cafecito (imagen oscura con texto blanco: va bien con el tema).
   El foco se ve igual que en el resto del sitio y al apretarlo se hunde apenas. */
.cafecito { display: inline-flex; border-radius: 10px; transition: transform 160ms var(--ease-salida); }
.cafecito img { display: block; width: 192px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--borde-fuerte); }
.cafecito:active { transform: scale(0.97); }
.cafecito:focus-visible { outline: none; box-shadow: var(--foco); }
.cafecito-portada img { width: 240px; height: 50px; }
.apoyo-idea { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--borde); font-size: var(--txt-sm); color: var(--tinta-suave); }
.apoyo-idea strong { color: var(--tinta); }
@media (max-width: 860px) { .apoyo-grilla { grid-template-columns: 1fr; } }

/* Entrada suave de las secciones al scrollear: solo CSS, y solo si el navegador lo soporta */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seccion-encabezado, .stat, .caso-hallazgo, .funciones-lista li, .vivo {
      animation: aparecer 1ms linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    /* Las barras de la caída crecen al entrar: cuenta la historia (antes 40%, hoy 12-15%) */
    .caida-barra {
      animation: crecer 1ms linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
  }
}
@keyframes crecer { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }
