/* ============ Sistema de diseño ============ */
:root {
  --tinta: #0a1226;
  --tinta-2: #1f2a44;
  --suave: #5a6681;
  --fondo: #f6f8fc;
  --blanco: #ffffff;
  --borde: #e2e8f2;
  --azul: #2563eb;
  --azul-2: #3b82f6;
  --azul-claro: #dbe8ff;
  --noche: #0a1226;
  --noche-2: #101c3a;
  --verde: #22c55e;
  --verde-2: #16a34a;
  --verde-tinta: #052e13;
  --amarillo: #facc15;
  --rojo: #ef4444;
  --radio: 18px;
  --radio-chico: 12px;
  --sombra: 0 1px 2px #0a12260d, 0 8px 24px #0a12260f;
  --sombra-alta: 0 30px 80px #0a122640;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-alto: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.tactil .solo-teclado { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-alto) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 400 17px/1.6 var(--texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
p { margin: 0; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.9em; font: 700 .78em/1 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  padding: .32em .5em; border-radius: 7px; background: var(--blanco); color: var(--tinta);
  border: 1px solid #cdd6e6; box-shadow: 0 2px 0 #cdd6e6; vertical-align: .08em;
}
.contenedor { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }
.angosto { width: min(820px, 100% - 32px); }
.centro { display: flex; justify-content: center; margin-top: 40px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--blanco); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.saltar:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--azul-2); outline-offset: 3px; border-radius: 8px; }

/* ============ Botones ============ */
.btn {
  --alto: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--alto); padding: 0 22px;
  border: 0; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; line-height: 1.2;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, color .18s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-verde { background: var(--verde); color: var(--verde-tinta); box-shadow: 0 10px 30px #22c55e4d, inset 0 -3px 0 #16a34a66; }
.btn-verde:hover:not(:disabled) { background: #2fd36b; transform: translateY(-2px); box-shadow: 0 16px 40px #22c55e66, inset 0 -3px 0 #16a34a66; }
.btn-vidrio { background: #ffffff14; color: #fff; border: 1px solid #ffffff33; backdrop-filter: blur(6px); }
.btn-vidrio:hover { background: #ffffff24; }
.btn-borde { background: var(--blanco); color: var(--tinta); border: 1.5px solid var(--borde); }
.btn-borde:hover { border-color: var(--tinta-2); }
.btn-azul { background: var(--azul); color: #fff; box-shadow: 0 10px 30px #2563eb40; }
.btn-azul:hover { background: #1d4fd8; }
.btn-xl { --alto: 60px; font-size: 18px; padding: 0 30px; }
.btn-ancho { width: 100%; }
.btn-nav { --alto: 42px; font-size: 15px; padding: 0 18px; }
.btn kbd { background: #ffffff66; border-color: transparent; box-shadow: none; color: inherit; }
.flecha { transition: transform .2s; }
.btn:hover .flecha { transform: translateX(4px); }

.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--azul);
  background: var(--azul-claro); padding: 7px 14px; border-radius: 999px; }
.chip-claro { color: #cfe0ff; background: #ffffff14; border: 1px solid #ffffff22; }
.punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 #22c55e99; animation: latido 2s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px #22c55e00; } 100% { box-shadow: 0 0 0 0 #22c55e00; } }

/* ============ Navegación ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-alto); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px); color: #fff; transition: background .25s, box-shadow .25s, color .25s;
}
.nav.solida { background: #ffffffe8; backdrop-filter: blur(14px); color: var(--tinta); box-shadow: 0 1px 0 var(--borde); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.logo img { border-radius: 9px; }
.logo-chico { font-size: 16px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .8; }
.nav-links a:hover { opacity: 1; }

/* ============ Hero ============ */
.hero { position: relative; color: #fff; padding: calc(var(--nav-alto) + clamp(32px, 6vw, 72px)) 0 clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero-fondo {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 20%, #2563eb66 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 90%, #22c55e2e 0%, transparent 60%),
    linear-gradient(180deg, #0a1226 0%, #0d1a3a 100%);
}
.hero-fondo::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); margin: 22px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bajada { font-size: clamp(17px, 1.7vw, 20px); color: #c9d6ef; max-width: 33em; }
.bajada strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; color: #c9d6ef; font-size: 15px; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #22c55e26; color: #86efac; font-size: 12px; font-weight: 800; }

.hero-visual { position: relative; }
.laptop { position: relative; transform: perspective(1600px) rotateY(-8deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero-visual:hover .laptop { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.laptop-pantalla { position: relative; padding: 10px; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #2b3550, #161f36); box-shadow: var(--sombra-alta), 0 0 0 1px #ffffff1a; }
.laptop-pantalla video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #000; }
.laptop-base { height: 16px; margin: 0 -5%; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #c7cfdf, #8e98ad); box-shadow: 0 20px 40px #0008; }
.ver-video { position: absolute; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 16px;
  background: #0a1226d9; color: #fff; font-weight: 700; font-size: 14px; backdrop-filter: blur(6px); }
.ver-video:hover { background: #0a1226; }

/* ============ Secciones ============ */
.seccion { padding: clamp(72px, 10vw, 128px) 0; }
.seccion-oscura { background: var(--noche); color: #fff; position: relative; overflow: hidden; }
.seccion-oscura::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, #2563eb40, transparent 60%); pointer-events: none; }
.seccion-suave { background: linear-gradient(180deg, #eef3fb, var(--fondo)); }
.titulo-seccion { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.titulo-seccion h2, .fuga h2, .final h2 { font-size: clamp(32px, 4.6vw, 56px); }
.titulo-seccion > p:not(.chip) { color: var(--suave); font-size: 18px; }

/* ============ Simulador ============ */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.sim-productos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prod {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; text-align: left;
  background: var(--blanco); border: 1.5px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.prod:hover { transform: translateY(-3px); border-color: var(--azul-2); box-shadow: 0 14px 30px #2563eb22; }
.prod.escaneado { animation: escaneo .35s ease-out; }
@keyframes escaneo { 0% { box-shadow: 0 0 0 0 #22c55e; border-color: var(--verde); } 100% { box-shadow: 0 0 0 14px #22c55e00; } }
.prod-n { position: absolute; right: 12px; top: 12px; font: 700 12px ui-monospace, Consolas, monospace; color: var(--suave); background: var(--fondo); border: 1px solid var(--borde); border-radius: 6px; padding: 2px 7px; }
.prod-ico { width: 46px; height: 46px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, white); }
.prod-nom { font-weight: 700; font-size: 15px; line-height: 1.25; }
.prod-pre { font-weight: 600; color: var(--suave); font-size: 14px; font-variant-numeric: tabular-nums; }

.sim-caja { background: var(--noche); color: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra-alta); }
.sim-barra { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #ffffff0d; border-bottom: 1px solid #ffffff12; }
.sim-dot { width: 11px; height: 11px; border-radius: 50%; background: #ffffff2e; }
.sim-dot:nth-child(1) { background: #f87171; } .sim-dot:nth-child(2) { background: #fbbf24; } .sim-dot:nth-child(3) { background: #4ade80; }
.sim-titulo { margin-left: 10px; font-size: 13px; color: #9fb0d0; font-weight: 600; }
.sim-cuerpo { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 380px; }
.sim-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow: auto; }
.sim-items li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #ffffff0a; font-variant-numeric: tabular-nums; animation: entra .25s ease-out; }
.sim-items li span:first-child { color: #dbe5f8; }
.sim-items .sim-vacio { justify-content: center; color: #8495b8; background: transparent; border: 1.5px dashed #ffffff22; padding: 26px; animation: none; }
@keyframes entra { from { opacity: 0; transform: translateY(-6px); } }
.sim-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.sim-total span { text-transform: uppercase; font-size: 12px; letter-spacing: .1em; font-weight: 700; color: #bfd3ff; }
.sim-total strong { font-family: var(--display); font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim-total.pulso strong { animation: pulso .3s; }
@keyframes pulso { 50% { transform: scale(1.06); } }
.sim-cobrar { width: 100%; --alto: 56px; font-size: 18px; border-radius: 14px; }
.sim-pago-lbl { font-weight: 700; color: #c9d6ef; margin-bottom: 10px; }
.billetes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.billete { border: 1.5px solid #ffffff2a; background: #ffffff0d; color: #fff; border-radius: 12px; padding: 12px 10px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s; }
.billete:hover { background: #22c55e22; border-color: var(--verde); }
.billete small { display: block; font-weight: 600; color: #8fa3c8; font-size: 12px; margin-top: 2px; }
.sim-resultado { display: flex; flex-direction: column; gap: 12px; animation: entra .3s ease-out; }
.sim-vuelto { display: flex; justify-content: space-between; align-items: baseline; padding: 18px; border-radius: 14px; background: var(--verde); color: var(--verde-tinta); }
.sim-vuelto span { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.sim-vuelto strong { font-family: var(--display); font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sim-tiempo { color: #c9d6ef; text-align: center; font-weight: 600; }
.sim-tiempo b { color: var(--amarillo); }
.sim-fin { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sim-fin .btn-borde { background: transparent; color: #fff; border-color: #ffffff33; }

/* ============ Calculadora ============ */
.fuga { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.fuga-texto > p:not(.chip) { color: #c9d6ef; font-size: 18px; margin-top: 16px; }
.fuga-texto h2 { margin-top: 18px; }
.controles { display: flex; flex-direction: column; gap: 26px; margin-top: 36px; }
.control { display: flex; flex-direction: column; gap: 12px; }
.control-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; color: #dbe5f8; }
.control output { font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--verde) var(--p, 50%), #ffffff22 var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 5px solid var(--verde); box-shadow: 0 4px 14px #0006; cursor: grab; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--verde); cursor: grab; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--azul-2); outline-offset: 2px; }
.ticket {
  position: relative; background: var(--blanco); color: var(--tinta); border-radius: 20px; padding: 30px 28px 28px; box-shadow: var(--sombra-alta);
  --diente: radial-gradient(circle at 10px 0, transparent 9px, var(--blanco) 10px);
}
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 20px; background: var(--diente); background-size: 20px 20px; }
.ticket-lbl { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--suave); }
.ticket-grande { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 68px); letter-spacing: -0.03em; color: var(--rojo); line-height: 1.05; margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.ticket-linea { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1.5px dashed var(--borde); font-variant-numeric: tabular-nums; }
.ticket-linea span { color: var(--suave); }
.ticket-linea strong { text-align: right; }
.ticket-nota { font-size: 13px; color: var(--suave); margin: 6px 0 18px; }

/* ============ Problemas ============ */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.tab { border: 1.5px solid var(--borde); background: var(--blanco); border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 16px; transition: all .18s; }
.tab:hover { border-color: var(--tinta-2); }
.tab[aria-selected=true] { background: var(--tinta); color: #fff; border-color: var(--tinta); box-shadow: 0 10px 24px #0a122633; }
.panel-tab { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.navegador { border-radius: 16px; overflow: hidden; background: var(--blanco); box-shadow: var(--sombra-alta); border: 1px solid var(--borde); }
.navegador-barra { display: flex; gap: 7px; padding: 11px 14px; background: #eef2f8; border-bottom: 1px solid var(--borde); }
.navegador-barra span { width: 11px; height: 11px; border-radius: 50%; background: #cfd7e5; }
.navegador img { width: 100%; transition: opacity .25s; }
.navegador img.cambiando { opacity: 0; }
.tab-texto h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.lista-check { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.lista-check li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dcfce7; color: var(--verde-2); font-weight: 800; font-size: 14px; margin-top: 1px; }

/* ============ Pasos ============ */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.pasos::before { content: ''; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, #b9c7e0 0 8px, transparent 8px 16px); z-index: 0; }
.pasos li { position: relative; z-index: 1; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 10px; }
.paso-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--azul); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; box-shadow: 0 8px 20px #2563eb44; }
.pasos h3 { font-size: 23px; margin-top: 6px; }
.pasos p { color: var(--suave); }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--blanco); border: 1px solid var(--borde); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sombra); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fondo); font-size: 20px; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--suave); padding: 0 0 20px; }

/* ============ Cierre y pie ============ */
.final { padding: 0 0 clamp(72px, 10vw, 120px); }
.final-caja { background: radial-gradient(80% 120% at 50% 0%, #2563eb, #0a1226 70%); color: #fff; border-radius: 32px; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; box-shadow: var(--sombra-alta); }
.final h2 em { font-style: normal; color: #86efac; }
.final p { color: #c9d6ef; font-size: 18px; max-width: 30em; }
.pie { padding: 28px 0 40px; color: var(--suave); font-size: 14px; border-top: 1px solid var(--borde); }
.pie-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pie .logo { color: var(--tinta); }

.barra-movil { display: none; }

/* ============ Quiz ============ */
.quiz { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0a1226b3; backdrop-filter: blur(6px); animation: aparecer .2s ease-out; }
.quiz[hidden] { display: none; }
@keyframes aparecer { from { opacity: 0; } }
.quiz-hoja { width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--blanco); border-radius: 26px; box-shadow: var(--sombra-alta); animation: subir .3s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }
.quiz-top { position: sticky; top: 0; z-index: 2; background: var(--blanco); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 14px; }
.quiz-titulo { font-family: var(--display); font-weight: 800; font-size: 20px; }
.quiz-sub { font-size: 14px; color: var(--suave); }
.cerrar { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--fondo); font-size: 16px; }
.cerrar:hover { background: var(--borde); }
.pasitos { display: flex; gap: 6px; padding: 0 24px; }
.pasitos span { flex: 1; height: 6px; border-radius: 999px; background: var(--borde); transition: background .3s; }
.pasitos span.hecho { background: var(--verde); }
.pasitos span.actual { background: var(--azul); }
.quiz-cuerpo { padding: 26px 24px 28px; }
.quiz-cuerpo > * { animation: entra .25s ease-out; }
.q-n { font-size: 14px; font-weight: 700; color: var(--azul); margin-bottom: 8px; }
.q-texto { font-family: var(--display); font-size: clamp(25px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 22px; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 18px; min-height: 108px;
  background: var(--blanco); border: 2px solid var(--borde); border-radius: 18px; transition: border-color .15s, background .15s, transform .15s;
}
.opcion:hover, .opcion:focus-visible { border-color: var(--azul-2); background: #f5f8ff; outline: none; transform: translateY(-2px); }
.opcion.sugerida { border-color: var(--verde); background: #f0fdf4; }
.opcion-ico { font-size: 26px; line-height: 1; }
.opcion-txt { font-weight: 700; font-size: 16px; line-height: 1.3; }
.opcion-tecla { margin-left: auto; margin-top: auto; font: 700 12px ui-monospace, Consolas, monospace; color: var(--suave); }
.etiqueta-sug { font-size: 12px; font-weight: 700; color: var(--verde-2); }
.q-atras { margin-top: 18px; border: 0; background: none; color: var(--suave); font-weight: 600; padding: 8px 0; }
.q-atras:hover { color: var(--tinta); }
.campo { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.campo input { font: inherit; font-size: 17px; padding: 15px 16px; border: 2px solid var(--borde); border-radius: 14px; background: var(--fondo); transition: border-color .15s, background .15s; }
.campo input:focus { outline: none; border-color: var(--azul-2); background: var(--blanco); }
.privado { font-size: 13px; color: var(--suave); margin: 2px 0 14px; display: flex; gap: 8px; align-items: center; }
.error { color: #b91c1c; font-weight: 600; font-size: 14px; min-height: 22px; }

/* Resultado del quiz */
.res-sello { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: #dcfce7; color: var(--verde-2); margin-bottom: 16px; }
.res-sello.no { background: #fef3c7; color: #92400e; }
.res-titulo { font-family: var(--display); font-size: clamp(26px, 3.8vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.res-texto { color: var(--suave); margin-bottom: 18px; }
.medidor { background: var(--fondo); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; }
.medidor-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.medidor-barra { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f59e0b 45%, #22c55e); position: relative; }
.medidor-marca { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--tinta); transform: translate(-50%, -50%); transition: left .8s cubic-bezier(.2,.8,.2,1); }
.medidor-pie { display: flex; justify-content: space-between; font-size: 12px; color: var(--suave); margin-top: 8px; }
.descarga { background: linear-gradient(135deg, #0a1226, #1e3a8a); color: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.descarga-titulo { font-family: var(--display); font-size: 22px; font-weight: 800; }
.descarga small { color: #c9d6ef; text-align: center; }
.instrucciones { counter-reset: i; list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #dbe5f8; }
.instrucciones li { counter-increment: i; display: flex; gap: 10px; }
.instrucciones li::before { content: counter(i); flex: none; width: 22px; height: 22px; border-radius: 50%; background: #ffffff1f; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.copiar { display: flex; gap: 8px; }
.copiar input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 0; }
.wa { background: #25d366; color: #063d1c; }
.wa:hover { background: #2ee173; }

/* ============ Animación al hacer scroll ============ */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.revelar.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero-grid, .fuga, .panel-tab { grid-template-columns: minmax(0, 1fr); }
  .hero-texto { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-ctas, .checks { justify-content: center; }
  .laptop { transform: none; }
  .laptop-base { margin: 0 -2%; }
  .hero-visual { max-width: 720px; margin: 0 auto; width: 100%; }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .fuga-texto { text-align: center; }
  .fuga-texto .chip { margin: 0 auto; }
  .fuga-resultado { max-width: 520px; margin: 0 auto; width: 100%; }
  .panel-tab .navegador { order: 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .btn-nav { display: none; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .btn { white-space: normal; }
  .btn-xl { font-size: 17px; padding: 10px 20px; }
        .ver-video { right: 16px; bottom: 16px; font-size: 13px; padding: 8px 12px; }
  .sim-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prod { padding: 14px; }
  .prod-n { display: none; }
  .sim-cuerpo { min-height: 0; padding: 14px; }
  .sim-fin { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; scroll-snap-align: start; font-size: 15px; padding: 11px 16px; }
  .pasos { grid-template-columns: minmax(0, 1fr); }
  .pasos::before { left: 49px; right: auto; top: 12%; bottom: 12%; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #b9c7e0 0 8px, transparent 8px 16px); }
  .final-caja { border-radius: 24px; }
  .pie-fila { justify-content: center; text-align: center; }
  .barra-movil {
    display: block; position: fixed; left: 0; right: 0; bottom: var(--insignia, 0px); z-index: 45; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #ffffffeb; backdrop-filter: blur(12px); box-shadow: 0 -8px 24px #0a12261a; transform: translateY(calc(110% + var(--insignia, 0px))); transition: transform .3s;
  }
  .barra-movil.visible { transform: none; }
  body.con-barra .pie { padding-bottom: calc(110px + var(--insignia, 0px)); }
  .seccion { padding: 56px 0; }
  .titulo-seccion { margin-bottom: 28px; gap: 12px; }
  .titulo-seccion > p:not(.chip), .fuga-texto > p:not(.chip), .final p { font-size: 16px; }
  .hero { padding-bottom: 56px; }
  .hero h1 { margin: 18px 0 16px; }
  .hero-ctas { margin: 24px 0 18px; }
  .hero-visual { margin-top: 8px; }
  /* Caja de prueba: la caja arriba (total y vuelto siempre a la vista) y los productos abajo, compactos */
  .sim { gap: 12px; }
  .sim-caja { order: -1; border-radius: 18px; }
  .sim-barra { padding: 9px 14px; }
  .sim-items { max-height: 118px; }
  .sim-items li { padding: 8px 10px; font-size: 15px; }
  .sim-items .sim-vacio { padding: 14px; }
  .sim-total { padding: 12px 14px; }
  .sim-total strong { font-size: 32px; }
  .sim-cobrar { --alto: 50px; }
  .sim-vuelto { padding: 12px 14px; }
  .sim-vuelto strong { font-size: 34px; }
  .billetes { grid-template-columns: 1fr 1fr; }
  .sim-productos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .prod { align-items: center; text-align: center; padding: 10px 6px; gap: 4px; border-radius: 14px; }
  .prod-ico { width: 38px; height: 38px; font-size: 21px; border-radius: 11px; }
  .prod-nom { font-size: 13px; }
  .prod-pre { font-size: 12px; }
  .controles { gap: 22px; margin-top: 28px; }
  .ticket { padding: 24px 20px 22px; }
  .lista-check li { font-size: 16px; }
  .faq details { padding: 0 16px; }
  .faq summary { font-size: 16px; padding: 16px 0; }
  /* El quiz ocupa toda la pantalla en el celular */
  .quiz { padding: 0; align-items: stretch; }
  .quiz-hoja { border-radius: 0; max-height: none; height: 100dvh; width: 100%; }
  .quiz-top { padding: 16px 16px 12px; }
  .pasitos { padding: 0 16px; }
  .quiz-cuerpo { padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); }
  .opciones { grid-template-columns: minmax(0, 1fr); }
  .opcion { flex-direction: row; align-items: center; min-height: 0; padding: 16px; }
  .opcion-tecla { display: none; }
}
@media (max-width: 340px) {
  .sim-productos { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}
