/* Hormiga · propuesta continua. Las secciones no tienen fondo propio: un solo lienzo cambia de color con el scroll. */
:root {
  --tinta: #13201a;
  --tinta-suave: #3c4a42;
  --claro: #f2f5f0;
  --acento: #2e7d32;
  --oro: #ffe39a;
  --necesario: #3e7cb1;
  --no-urgente: #7b6cc2;
  --hormiga: #e39a2d;

  --display: "Newsreader", Georgia, serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --margen: clamp(16px, 4vw, 48px);
  --aire: clamp(72px, 9vw, 128px);
  --suave: cubic-bezier(0.22, 0.68, 0.2, 1);

  --fondo: #1f4f28;
  --luz: #4caf50;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #1f4f28; color: var(--tinta); font: 400 16px/1.55 var(--texto); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hormiga); outline-offset: 3px; border-radius: 6px; }
.vh, .saltar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar:focus { width: auto; height: auto; clip-path: none; left: 16px; top: 12px; z-index: 50; background: #fff; padding: 10px 16px; }
.marco { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--margen); }
.cifra { font-variant-numeric: tabular-nums; }

h1, h2, .gigante { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1.02; }
h1 em { font-style: normal; color: var(--oro); white-space: nowrap; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
h3 { font-size: 18px; line-height: 1.3; margin: 0 0 4px; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.entrada { font-size: clamp(16px, 1.2vw, 18px); color: var(--tinta-suave); max-width: 32em; margin-top: 18px; }
.nota { font-size: 13px; color: #6b766e; }
.antetitulo { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acento); margin-bottom: 12px; }
.oscuro { color: var(--claro); }
.oscuro .entrada { color: rgb(242 245 240 / 0.78); }

/* ---------- Lienzo único (degradados, sin filtros: es lo que más pesa al hacer scroll) ---------- */
.lienzo { position: fixed; inset: 0; z-index: -1; background: var(--fondo); overflow: hidden; }
.luz { position: absolute; width: 90vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--luz), transparent); opacity: 0.5; will-change: transform; }
.luz-a { left: -40vmax; top: -45vmax; }
.luz-b { right: -45vmax; bottom: -50vmax; opacity: 0.32; }

/* ---------- Superficies ---------- */
.vidrio { background: rgb(255 255 255 / 0.66); border: 1px solid rgb(255 255 255 / 0.9); box-shadow: 0 24px 50px -28px rgb(16 40 22 / 0.3), inset 0 1px 0 #fff; border-radius: 24px; }
.vidrio-oscuro { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-radius: 24px; }

/* ---------- Barra ---------- */
.barra { position: fixed; inset: 10px 0 auto; z-index: 20; pointer-events: none; }
.barra .marco {
  display: flex; align-items: center; gap: 20px; pointer-events: auto;
  max-width: 1120px; padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgb(255 255 255 / 0.7); border: 1px solid rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -16px rgb(16 40 22 / 0.3);
  transition: background 0.6s, color 0.6s, border-color 0.6s;
}
.barra.sobre-oscuro .marco { background: rgb(19 32 26 / 0.4); border-color: rgb(255 255 255 / 0.14); color: var(--claro); }
.marca { display: flex; align-items: center; gap: 8px; font: 600 19px/1 var(--display); text-decoration: none; }
.barra nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.barra nav a { text-decoration: none; opacity: 0.78; }
.barra nav a:hover { opacity: 1; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--acento); color: #fff; font: 600 14px/1 var(--texto); text-decoration: none;
  transition: transform 0.25s var(--suave), box-shadow 0.25s;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgb(46 125 50 / 0.8); }
.boton:active { transform: scale(0.98); }
.boton.grande { padding: 15px 26px; font-size: 16px; min-height: 50px; }
.portada .boton { background: var(--oro); color: var(--tinta); }
.enlace-flecha { font-weight: 500; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.enlace-flecha::after { content: " →"; }

/* ---------- Monedas ---------- */
.moneda {
  --t: 48px; position: absolute; width: var(--t); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgb(255 250 230 / 0.95) 0 7%, transparent 8%), linear-gradient(135deg, #ffe39a, #f2b03c 45%, #b8731a);
  box-shadow: inset 0 -4px 8px rgb(138 82 15 / 0.35), 0 10px 22px -6px rgb(10 30 15 / 0.35);
}
.moneda::after { content: ""; position: absolute; inset: 17%; border-radius: 50%; border: calc(var(--t) * 0.05) solid rgb(255 244 207 / 0.8); }

/* ---------- Teléfonos ---------- */
.telefono {
  position: relative; width: 280px; padding: 9px; border-radius: 42px; flex: none;
  background: linear-gradient(160deg, #2a2f2c, #0b0f0c);
  box-shadow: 0 40px 70px -30px rgb(8 20 12 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.telefono img { border-radius: 34px; width: 100%; }

/* ---------- Rastro y contador ---------- */
main { position: relative; }
main > section { position: relative; z-index: 1; padding: var(--aire) 0; }
.rastro { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.rastro-fondo { stroke: rgb(227 154 45 / 0.2); stroke-width: 4; stroke-dasharray: 0 14; stroke-linecap: round; }
.rastro-linea { stroke: #e9a63c; stroke-width: 6; stroke-dasharray: 0 14; stroke-linecap: round; }
.punta { --t: 24px; z-index: 0; left: 0; top: 0; margin: -12px 0 0 -12px; box-shadow: 0 0 0 7px rgb(255 227 154 / 0.25), 0 0 26px 4px rgb(255 200 90 / 0.5); }
.punta[hidden] { display: none; }

.contador {
  position: fixed; z-index: 25; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none;
  background: rgb(19 32 26 / 0.88); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -14px rgb(0 0 0 / 0.5);
  opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity 0.6s var(--suave), translate 0.6s var(--suave);
}
.contador.visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.contador .mini { --t: 30px; position: relative; flex: none; transition: transform 0.4s var(--suave); }
.contador.suma .mini { transform: rotateY(180deg) scale(1.1); }
.cuenta { display: grid; line-height: 1.15; }
.cuenta small { font-size: 11px; opacity: 0.7; }
.cuenta b { font-size: 15px; color: var(--oro); }
.regla { width: 70px; height: 4px; border-radius: 9px; background: rgb(255 255 255 / 0.18); overflow: hidden; }
.regla i { display: block; height: 100%; width: 100%; background: var(--oro); transform-origin: left; transform: scaleX(0); }
.frena { font-size: 13px; font-weight: 600; }

/* ---------- Aparecer en orden (pausado) ---------- */
.js .aparece { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--suave), transform 1.1s var(--suave); transition-delay: calc(var(--i, 0) * 120ms); }
.js .aparece.visto { opacity: 1; transform: none; }

/* ---------- Portada ---------- */
.portada { min-height: 100svh; display: flex; align-items: center; padding-top: 110px !important; }
.portada .marco { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.sello { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.18); margin-bottom: 22px; }
.punto-vivo { width: 7px; height: 7px; border-radius: 50%; background: var(--oro); animation: latido 2.4s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgb(255 227 154 / 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgb(255 227 154 / 0); } }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
.confianza { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 13px; opacity: 0.82; }
.confianza li::before { content: "✓"; color: var(--oro); font-weight: 700; margin-right: 6px; }
.portada .escena { position: relative; height: 600px; display: grid; place-items: center; }
.portada .telefono { transform: perspective(1400px) rotateY(calc(-16deg * (1 - var(--s, 0)))) rotateX(calc(6deg * (1 - var(--s, 0)))) translateY(calc(var(--s, 0) * 70px)); will-change: transform; }
.ficha { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; color: var(--tinta); font-size: 13px; }
.ficha strong { display: block; font-size: 14px; }
.ficha small { color: #5b665e; }
.ficha b { margin-left: 8px; font-size: 15px; }
.ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.ico.ia { background: linear-gradient(135deg, #2e7d32, #66bb6a); color: #fff; }
.ico.ambar { background: #fdefd6; font-size: 17px; }
.f1 { top: 14%; left: -2%; }
.f2 { bottom: 18%; right: -2%; }
.portada .mascota { position: absolute; width: 150px; left: -4%; bottom: 0; filter: drop-shadow(0 16px 18px rgb(0 0 0 / 0.3)); }
.m1 { --t: 60px; top: 5%; right: 8%; }
.m2 { --t: 36px; top: 50%; left: 2%; opacity: 0.8; }
.m3 { --t: 44px; bottom: 4%; right: 24%; }

/* ---------- Calculadora ---------- */
.calculadora .marco { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.controles { display: grid; gap: 22px; margin-top: 28px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, .titulo { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones input { position: absolute; opacity: 0; }
.opciones span { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 15px; background: rgb(255 255 255 / 0.75); border: 1px solid rgb(19 32 26 / 0.1); cursor: pointer; transition: background 0.25s, color 0.25s; }
.opciones input:checked + span { background: var(--acento); color: #fff; border-color: transparent; }
.opciones input:focus-visible + span { outline: 3px solid var(--hormiga); outline-offset: 2px; }
.campo-precio { display: flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 14px; background: #fff; border: 1px solid rgb(19 32 26 / 0.12); }
.campo-precio input { border: 0; outline: 0; font: 600 19px/1 var(--texto); padding: 12px 0; width: 100%; background: none; }
input[type="range"] { width: 100%; accent-color: var(--acento); }
.resultado { padding: clamp(24px, 3.4vw, 44px); }
.por { color: var(--tinta-suave); font-size: 15px; }
.gigante { font-size: clamp(44px, 5.2vw, 76px); line-height: 1; margin: 6px 0; color: var(--hormiga); }
.monedas { display: flex; flex-wrap: wrap; gap: 5px; min-height: 52px; margin: 22px 0; }
.monedas i { width: 18px; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #ffe39a, #f2b03c 45%, #b8731a); box-shadow: 0 2px 5px rgb(10 30 15 / 0.25); animation: cae 0.6s var(--suave) both; }
@keyframes cae { from { transform: translateY(-30px); opacity: 0; } }
.ahorro { font-weight: 600; color: var(--acento); }

/* ---------- Banco ---------- */
.banco .marco { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: center; }
.comparacion { position: relative; height: 380px; }
.comparacion article { position: absolute; width: min(330px, 84%); padding: 22px; border-radius: 24px; }
.comparacion .etq { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.comparacion ul { list-style: none; padding: 0; margin: 0; }
.comparacion li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgb(19 32 26 / 0.08); font-size: 15px; }
.tarjeta-banco { left: 0; top: 0; background: #e3e6e1; color: #59635c; rotate: -4deg; box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.3); }
.tarjeta-banco .vacio { color: #a0a8a2; font-style: italic; }
.tarjeta-hormiga { right: 0; bottom: 0; rotate: 3deg; }
.tarjeta-hormiga li:nth-child(-n + 3) b { color: var(--acento); }

/* ---------- Anotar: teléfono fijo, pasos que pasan ---------- */
.paso-intro { margin-bottom: 4vh; }
.anotar .rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.paso { min-height: 140vh; }
.paso-texto { position: sticky; top: 40vh; max-width: 400px; opacity: 0.12; transition: opacity 0.7s var(--suave); }
.paso.activo .paso-texto { opacity: 1; }
.paso h3 { font: 600 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; margin: 12px 0 10px; }
.paso p { color: var(--tinta-suave); font-size: 17px; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acento); color: #fff; font-weight: 600; font-size: 15px; }
.pegado { position: sticky; top: calc(50svh - 315px); height: 630px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.pegado .telefono { transform: perspective(1400px) rotateY(var(--g, -8deg)) rotateX(3deg); will-change: transform; }
.progreso { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.progreso li { width: 6px; height: 6px; border-radius: 99px; background: rgb(19 32 26 / 0.18); transition: height 0.5s var(--suave), background 0.5s; }
.progreso li.activa { height: 26px; background: var(--acento); }

/* ---------- La app simulada (todo en HTML: liviano y nítido) ---------- */
.vivo { zoom: var(--zoom, 1); }
.pantalla { position: relative; width: 262px; height: 568px; border-radius: 34px; overflow: hidden; background: #f6f8f4; font-size: 12px; line-height: 1.35; color: var(--tinta); }
.app { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--suave); display: flex; flex-direction: column; }
.app.activa { opacity: 1; }
.estado { display: flex; justify-content: space-between; padding: 12px 22px 4px; font-size: 11px; font-weight: 600; }
.estado.osc { color: #fff; }
.cabecera { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 10px; font-weight: 600; font-size: 13px; }
.cabecera span { width: 16px; opacity: 0.6; }
.cabecera.osc { color: #fff; }
[data-en] { transition: opacity 0.5s var(--suave), transform 0.5s var(--suave); }
.js .app [data-en]:not(.on) { opacity: 0; transform: translateY(10px); }
.btn-app { display: block; margin-top: 12px; padding: 11px; border-radius: 999px; background: var(--acento); color: #fff; text-align: center; font-weight: 600; font-size: 13px; }
.ok { color: var(--acento); font-weight: 600; font-size: 13px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; background: #eef1ec; font-size: 11px; margin-right: 4px; }
.tag.h { background: #fdefd6; color: #9a5b10; font-weight: 600; }

.app-foto { background: #101511; }
.visor { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3a3f3a, #101511 70%); }
.papel { width: 150px; padding: 14px 12px; background: #fbfaf5; color: #2b2b2b; font: 500 8.5px/1.6 ui-monospace, Consolas, monospace; rotate: -3deg; box-shadow: 0 16px 30px rgb(0 0 0 / 0.5); clip-path: polygon(0 0, 100% 0, 100% 96%, 92% 100%, 84% 96%, 76% 100%, 68% 96%, 60% 100%, 52% 96%, 44% 100%, 36% 96%, 28% 100%, 20% 96%, 12% 100%, 4% 96%, 0 100%); }
.papel p { display: flex; justify-content: space-between; }
.papel .c { justify-content: center; }
.papel .t { font-weight: 700; }
.papel hr { border: 0; border-top: 1px dashed #999; margin: 4px 0; }
.marco-visor { position: absolute; inset: 14% 12%; border-radius: 16px; background:
  linear-gradient(#fff, #fff) top left / 22px 3px no-repeat, linear-gradient(#fff, #fff) top left / 3px 22px no-repeat,
  linear-gradient(#fff, #fff) top right / 22px 3px no-repeat, linear-gradient(#fff, #fff) top right / 3px 22px no-repeat,
  linear-gradient(#fff, #fff) bottom left / 22px 3px no-repeat, linear-gradient(#fff, #fff) bottom left / 3px 22px no-repeat,
  linear-gradient(#fff, #fff) bottom right / 22px 3px no-repeat, linear-gradient(#fff, #fff) bottom right / 3px 22px no-repeat; }
.linea-escaneo { position: absolute; left: 14%; right: 14%; top: 18%; height: 2px; border-radius: 2px; background: #66bb6a; box-shadow: 0 0 14px 3px rgb(102 187 106 / 0.7); animation: escanea 2.4s ease-in-out infinite alternate; }
@keyframes escanea { to { top: 80%; } }
.flash { position: absolute; inset: 0; background: #fff; }
.chip-ia { position: absolute; bottom: 16px; padding: 6px 12px; border-radius: 99px; background: rgb(255 255 255 / 0.92); color: var(--acento); font-weight: 600; font-size: 11px; }
.hoja { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 18px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 30px rgb(0 0 0 / 0.25); }
.js .app .hoja:not(.on) { transform: translateY(105%); opacity: 1; }
.meta { font-size: 10px; color: #6b766e; margin: 2px 0 10px; }
.items { list-style: none; padding: 0; margin: 0; }
.items li, .total { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid #eef1ec; }
.items small { color: #8a948c; }
.total { font-weight: 700; font-size: 13px; }
.etiquetas { margin-top: 8px; }

.app-voz { background: linear-gradient(170deg, #2e7d32, #1f4f28); color: #fff; }
.dicho { min-height: 120px; padding: 18px 20px 0; font: 600 17px/1.35 var(--display); }
.cursor { display: inline-block; width: 2px; height: 16px; margin-left: 2px; background: var(--oro); vertical-align: -2px; animation: parpadea 1s steps(2) infinite; }
@keyframes parpadea { 50% { opacity: 0; } }
.ondas { display: flex; justify-content: center; align-items: center; gap: 4px; height: 44px; margin-top: 10px; }
.ondas i { width: 4px; height: 30%; border-radius: 4px; background: rgb(255 255 255 / 0.75); animation: onda 0.9s ease-in-out infinite alternate; }
.ondas i:nth-child(3n) { animation-delay: -0.3s; } .ondas i:nth-child(3n + 1) { animation-delay: -0.6s; } .ondas i:nth-child(4n) { animation-duration: 0.7s; }
@keyframes onda { to { height: 100%; } }
.mic { width: 72px; height: 72px; margin: 18px auto 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--acento); box-shadow: 0 0 0 0 rgb(255 255 255 / 0.5); animation: escucha 1.6s infinite; }
.js .app .mic:not(.on) { opacity: 1; transform: none; animation: none; }
@keyframes escucha { 70%, 100% { box-shadow: 0 0 0 22px rgb(255 255 255 / 0); } 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.5); } }
.ayuda { text-align: center; margin-top: 12px; font-size: 11px; opacity: 0.8; }
.app-voz .hoja { color: var(--tinta); }
.gasto { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef1ec; }
.gasto span:nth-child(2) { flex: 1; display: grid; }
.gasto small { color: #8a948c; font-size: 10px; }
.ico-app { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fdefd6; font-size: 15px; }
.pregunta { margin-top: 8px; padding: 10px; border-radius: 14px; background: #eef5ec; }
.pregunta p { font-weight: 600; margin-bottom: 6px; }
.op { display: inline-block; padding: 5px 12px; border-radius: 99px; background: #fff; border: 1px solid #dfe6dc; margin-right: 4px; }
.pregunta .op[data-en].on { background: var(--acento); color: #fff; border-color: transparent; }
.js .pregunta .op[data-en]:not(.on) { opacity: 1; transform: none; }

.app-mano { padding-bottom: 14px; }
.sin-senal { margin: 0 16px; padding: 5px 10px; border-radius: 99px; background: #fdefd6; color: #9a5b10; font-size: 10.5px; font-weight: 600; text-align: center; }
.monto { text-align: center; font: 600 40px/1 var(--display); margin: 22px 0 14px; }
.chips { display: flex; gap: 6px; justify-content: center; }
.chips span { padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid #e3e8e0; font-size: 11px; }
.chips span[data-en].on { background: var(--acento); color: #fff; border-color: transparent; }
.js .chips span[data-en]:not(.on) { opacity: 1; transform: none; }
.campos { margin: 12px 16px 0; background: #fff; border-radius: 14px; padding: 2px 12px; }
.campos p { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid #f0f2ee; }
.campos p:first-child { border-top: 0; }
.campos span { color: #8a948c; }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 12px 16px 0; }
.teclado i { font-style: normal; text-align: center; padding: 7px 0; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; transition: background 0.15s, transform 0.15s; }
.teclado i.pulsa { background: #cfe8d2; transform: scale(0.94); }
.app-mano .btn-app { margin: 10px 16px 0; }
.aviso { position: absolute; left: 14px; right: 14px; top: 64px; padding: 10px 12px; border-radius: 14px; background: var(--tinta); color: #fff; font-size: 11px; box-shadow: 0 10px 24px rgb(0 0 0 / 0.3); }
.js .app .aviso:not(.on) { transform: translateY(-20px); }

/* ---------- Madres: sección fija que se recorre ---------- */
.madres { padding: 0 !important; }
.pista { height: 280vh; }
.fijo { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.lista-madres { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.lista-madres li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgb(255 255 255 / 0.6); }
.lista-madres small { display: block; color: #5b665e; font-size: 14px; }
.punto { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.madres .telefono { justify-self: center; transform: perspective(1400px) rotateY(10deg) rotateX(3deg); }
.app-resumen { background: #f6f8f4; }
.cabeza-verde { margin-top: -38px; padding: 46px 16px 16px; background: linear-gradient(160deg, #2e7d32, #1f4f28); color: #fff; }
.cabeza-verde small { opacity: 0.75; font-size: 10px; }
.cabeza-verde p { font: 600 17px/1.2 var(--display); margin: 2px 0 12px; }
.barra-madres { display: flex; gap: 3px; height: 9px; border-radius: 9px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.barra-madres span { width: 0; transition: width 0.7s var(--suave); }
.bn { background: #6fa5d6; } .bu { background: #a99be6; } .bh { background: #f2b03c; }
.filas { margin: 12px 12px 0; padding: 4px 12px; border-radius: 16px; background: #fff; }
.fila { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #f0f2ee; }
.fila:first-child { border-top: 0; }
.fila i { width: 9px; height: 9px; border-radius: 50%; }
.fila b { margin-left: auto; transition: color 0.4s; }
.fila.brilla b { color: var(--acento); }
.fila.h.brilla b { color: #c9771a; }
.sub { margin: 14px 16px 6px; font-weight: 600; font-size: 11px; color: #6b766e; }
.movs { list-style: none; padding: 0; margin: 0 12px; display: grid; gap: 6px; }
.movs li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; animation: entra 0.5s var(--suave) both; }
.movs li b { margin-left: auto; }
.movs .ico-app { width: 26px; height: 26px; font-size: 13px; }
.movs .tag { font-size: 9.5px; padding: 2px 7px; }
.tag.n { background: #e1ecf6; color: #2c5f8c; } .tag.u { background: #ebe7f8; color: #5a4aa6; }
@keyframes entra { from { opacity: 0; transform: translateY(-14px) scale(0.97); } }

/* ---------- Por qué ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 14px; margin-top: 40px; }
.bento article { padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; border-radius: 24px; background: rgb(255 255 255 / 0.7); border: 1px solid #fff; }
.bento p { color: var(--tinta-suave); font-size: 15px; }
.bento .grande { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, #2e7d32, #1f4f28); color: var(--claro); border: 0; }
.bento .grande h3 { font: 600 clamp(28px, 2.8vw, 40px)/1.05 var(--display); }
.bento .grande p { color: rgb(242 245 240 / 0.8); font-size: 17px; max-width: 22em; }
.bento .ambar { background: rgb(252 227 180 / 0.8); }
.ico-g { position: absolute; top: 20px; left: 22px; font-size: 26px; }
.grande .ico-g { font-size: 48px; }
.con-foto { grid-row: span 2; }
.con-foto img { position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 72%; border-radius: 16px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.4); }
.con-foto::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #fff 45%); }
.con-foto h3, .con-foto p { position: relative; z-index: 1; }

/* ---------- Comparar ---------- */
.tabla { margin-top: 36px; border-radius: 24px; background: rgb(255 255 255 / 0.7); border: 1px solid #fff; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 16px 20px; font-size: 15px; }
thead th { font-size: 14px; color: #5b665e; font-weight: 600; }
tbody tr:nth-child(odd) { background: rgb(255 255 255 / 0.5); }
tbody th { font-weight: 600; }
.h { background: rgb(46 125 50 / 0.1); color: #1f5a2a; font-weight: 600; }
thead .h { font: 600 19px/1 var(--display); color: #1f5a2a; }
td i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; vertical-align: -4px; font-style: normal; font-size: 11px; font-weight: 700; }
i.s { background: var(--acento); color: #fff; } i.s::before { content: "✓"; }
i.n { background: #e5e2dc; color: #8a948c; } i.n::before { content: "✕"; }
i.m { background: #fdefd6; color: #b8731a; } i.m::before { content: "–"; }
.comparar .nota { margin-top: 14px; }

/* ---------- Privacidad ---------- */
.privado dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0 0; }
.privado dl div { padding: 26px; }
.privado dt { font: 600 22px/1.15 var(--display); margin-bottom: 10px; }
.privado dd { margin: 0; color: rgb(242 245 240 / 0.75); font-size: 15px; }

/* ---------- Preguntas ---------- */
.preguntas .marco { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.mascota-q { width: 180px; margin-top: 32px; filter: drop-shadow(0 16px 18px rgb(0 0 0 / 0.18)); }
.lista-preguntas { display: grid; gap: 10px; align-content: start; }
details { border-radius: 20px; background: rgb(255 255 255 / 0.65); border: 1px solid rgb(19 32 26 / 0.06); transition: background 0.3s; }
details[open] { background: #e3f1e1; }
summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 9px; height: 9px; border: solid var(--acento); border-width: 0 2px 2px 0; rotate: 45deg; margin-top: 4px; transition: rotate 0.3s var(--suave); flex: none; }
details[open] summary::after { rotate: -135deg; margin-top: 9px; }
details p { padding: 0 22px 18px; color: #2d4a33; font-size: 15px; }

/* ---------- Lista de espera ---------- */
.espera .marco { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.tarjeta-espera { padding: clamp(24px, 3.6vw, 48px); border-radius: 34px; }
.oscuro-sello { background: var(--tinta); color: var(--oro); border: 0; }
.formulario-espera { display: flex; gap: 8px; margin-top: 26px; padding: 6px 6px 6px 20px; border-radius: 999px; background: #fff; box-shadow: 0 12px 30px -14px rgb(74 48 0 / 0.3); }
.formulario-espera input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 16px var(--texto); background: none; }
.formulario-espera:focus-within { outline: 3px solid var(--acento); outline-offset: 3px; }
.espera .nota { margin-top: 12px; color: #6b5420; }
.tiendas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tiendas span { display: grid; padding: 8px 18px 8px 14px; border-radius: 12px; background: var(--tinta); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; }
.tiendas small { font-weight: 400; font-size: 10px; opacity: 0.75; }
.espera .escena { position: relative; display: grid; place-items: center; }
.espera .telefono { width: 250px; transform: perspective(1400px) rotateY(-12deg) rotateZ(3deg); }
.espera .mascota { position: absolute; width: 150px; right: 0; bottom: -24px; }

/* ---------- Cierre ---------- */
.cierre { position: relative; z-index: 1; padding: 100px 0 110px; }
.nombre { font: 600 clamp(64px, 15vw, 200px)/0.85 var(--display); letter-spacing: -0.05em; color: rgb(242 245 240 / 0.12); }
.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 36px; font-size: 14px; color: rgb(242 245 240 / 0.7); }
.pie nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Teléfono (celular) ---------- */
@media (max-width: 900px) {
  :root { --aire: 64px; }
  .barra nav { display: none; }
  .barra .marca { margin-right: auto; }
  .portada { min-height: auto; padding-top: 96px !important; padding-bottom: 40px !important; }
  .portada .marco, .banco .marco, .calculadora .marco, .preguntas .marco, .espera .marco { grid-template-columns: 1fr; }
  .portada .marco { gap: 8px; }
  .acciones { margin-top: 24px; }
  .acciones .boton { flex: 1 1 100%; }
  .portada .escena { height: 430px; }
  .portada .telefono { width: 200px; border-radius: 32px; padding: 7px; }
  .portada .telefono img { border-radius: 26px; }
  .portada .mascota { width: 104px; left: 2%; }
  .f1 { left: 0; top: 10%; } .f2 { right: 0; bottom: 14%; }
  .m2 { display: none; }
  .dos { grid-template-columns: 1fr; }
  .comparacion { height: 360px; }

  .anotar .rejilla { grid-template-columns: 1fr; gap: 0; }
  .pegado { order: -1; top: 62px; height: auto; padding: 8px 0; z-index: 2; gap: 12px; }
  .pegado .telefono { transform: none; }
  .paso { min-height: 120svh; }
  .paso-texto {
    position: sticky; top: calc(100svh - 250px); z-index: 3; max-width: none; margin-top: 70svh; padding: 16px 18px;
    border-radius: 22px; background: rgb(255 255 255 / 0.94); border: 1px solid #fff; box-shadow: 0 18px 40px -20px rgb(16 40 22 / 0.35);
    opacity: 1;
  }
  .paso h3 { font-size: 22px; margin: 8px 0 6px; }
  .paso p { font-size: 15px; }
  .num { width: 30px; height: 30px; font-size: 13px; }

  .pista { height: 260svh; }
  .fijo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; align-content: start; padding-top: 70px; }
  .fijo .entrada { display: none; }
  .fijo h2 { font-size: 26px; }
  .lista-madres { display: flex; gap: 6px; margin-top: 10px; }
  .lista-madres li { flex: 1; padding: 6px 8px; border-radius: 12px; font-size: 12px; gap: 6px; }
  .lista-madres small { display: none; }
  .madres .telefono { transform: none; align-self: start; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, auto); }
  .bento .grande { grid-column: span 2; grid-row: span 1; min-height: 220px; }
  .con-foto { grid-row: span 2; }
  .bento article { padding: 16px; }
  .ico-g { top: 14px; left: 16px; font-size: 22px; }
  .bento p { font-size: 13px; }

  /* La tabla se vuelve tarjetas: una por función. */
  .tabla { background: none; border: 0; }
  table, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr, tbody tr:nth-child(odd) { background: rgb(255 255 255 / 0.75); border-radius: 18px; padding: 14px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  tbody th { grid-column: 1 / -1; padding: 0 0 4px; font-size: 15px; }
  tbody td { padding: 8px; border-radius: 12px; font-size: 12.5px; background: rgb(19 32 26 / 0.04); }
  tbody td.h { background: rgb(46 125 50 / 0.12); }
  tbody td::before { content: attr(data-col); display: block; font-size: 10.5px; color: #8a948c; font-weight: 600; margin-bottom: 4px; }
  td i { width: 16px; height: 16px; font-size: 9px; margin-right: 4px; vertical-align: -3px; }

  .privado dl { grid-template-columns: 1fr; }
  .mascota-q { display: none; }
  .espera .escena { display: none; }
  .formulario-espera { flex-direction: column; border-radius: 22px; padding: 6px; }
  .formulario-espera input { padding: 12px 14px; }
  .contador { left: 50%; translate: -50% 20px; bottom: 12px; }
  .contador.visible { translate: -50% 0; }
  .regla { display: none; }
}
@media (max-width: 400px) {
  .bento { grid-template-columns: 1fr; }
  .bento .grande, .con-foto { grid-column: auto; grid-row: auto; }
  .con-foto { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .aparece { opacity: 1; transform: none; transition: none; }
  .punto-vivo, .linea-escaneo, .ondas i, .mic, .cursor { animation: none !important; }
  .portada .telefono, .pegado .telefono { transform: none; }
}
