/*
 * coventa.app — página de venta (dic 2026). Papel de ticket + tinta + un acento que cambia según el giro elegido
 * (abarrotes ámbar, ropa arena, verdulería verde, carnicería rojo, showroom violeta, videojuegos lima). Firma: el ticket
 * (borde dentado) en los precios y la pastilla del giro que recolorea la página.
 */
:root {
  --paper: #fbf8f2;
  --paper-2: #f3eee4;
  --card: #ffffff;
  --ink: #17140f;
  --ink-2: #4a453c;
  --ink-3: #6f695e;
  --line: #e4ddcf;
  --line-2: #d4cab6;
  --night: #17140f;
  --night-2: #241f18;
  --on-night: #f7f2e8;
  --on-night-2: #b9b0a0;
  --brand: #ff5b1f;          /* naranja Coventa */
  --brand-ink: #17140f;
  --g: var(--brand);         /* acento del giro elegido */
  --on-g: var(--ink);
  --g-soft: color-mix(in srgb, var(--g) 16%, var(--paper));
  --ok: #1f7a4a;
  --bad: #c2321f;
  --r-s: 10px;
  --r: 16px;
  --r-l: 26px;
  --shadow: 0 1px 2px rgb(23 20 15 / 6%), 0 10px 30px -12px rgb(23 20 15 / 18%);
  --shadow-l: 0 2px 4px rgb(23 20 15 / 6%), 0 30px 60px -24px rgb(23 20 15 / 35%);
  --f-d: 'Epilogue', 'DM Sans', system-ui, sans-serif;
  --f: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mo: 1;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --wrap: 1180px;
  --gut: 20px;
}
html[data-giro='abarrotes'] { --g: #f2a900; --on-g: #17140f; }
html[data-giro='ropa'] { --g: #c79a6b; --on-g: #17140f; }
html[data-giro='verduleria'] { --g: #2f9a4a; --on-g: #ffffff; }
html[data-giro='carniceria'] { --g: #c8283c; --on-g: #ffffff; }
html[data-giro='showroom'] { --g: #6c4cf0; --on-g: #ffffff; }
html[data-giro='videojuegos'] { --g: #9bdc28; --on-g: #17140f; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-d); line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; border-radius: 6px; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--f); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 180ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px -10px rgb(23 20 15 / 60%); }
.btn-primary:hover { background: #000; box-shadow: 0 12px 26px -12px rgb(23 20 15 / 70%); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-g { background: var(--g); color: var(--on-g); }
.btn-lg { min-height: 56px; padding: 0 1.6rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ── Encabezado ── */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font: 800 1.35rem/1 var(--f-d); letter-spacing: -0.04em; text-decoration: none; }
.logo-mark { position: relative; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.logo-mark::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--brand); border-right-color: transparent; transform: rotate(-45deg); }
.nav { display: none; gap: 0.3rem; margin-left: 1rem; }
.nav a { padding: 0.55rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2); transition: background 160ms, color 160ms; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.top-acts { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.top-acts .btn { min-height: 42px; padding: 0 1rem; font-size: 0.95rem; }
.top-acts .btn-try { display: none; }
@media (min-width: 900px) { .nav { display: flex; } .top-acts .btn-try { display: inline-flex; } }

/* ── Hero ── */
.hero { position: relative; padding: 2.2rem 0 3.5rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g) 30%, transparent), transparent); filter: blur(10px); transition: background 500ms var(--ease); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 3rem; } .hero { padding: 3.4rem 0 4.5rem; } }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.4rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.eyebrow b { padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.78rem; }
.hero h1 { margin-top: 1.1rem; font-size: clamp(2.55rem, 8.4vw, 4.6rem); font-weight: 800; }
.hero h1 .word { background: linear-gradient(transparent 64%, var(--g) 64%, var(--g) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; transition: background 400ms var(--ease); }
.hero h1 .word.swap { animation: word-in calc(420ms * var(--mo)) var(--ease) both; }
.hero .lede { margin-top: 1.1rem; max-width: 34em; font-size: 1.12rem; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.hero-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero-note svg.i { width: 17px; height: 17px; color: var(--ok); }

/* Selector de giro: la firma de la página */
.giros { margin-top: 1.8rem; }
.giros-l { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem; }
.giro-list { display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 0.2rem var(--gut) 0.4rem; scroll-snap-type: x proximity; }
.giro-list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .giro-list { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.giro { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 46px; padding: 0 1rem 0 0.75rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 0.95rem/1 var(--f); white-space: nowrap; cursor: pointer; transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 160ms var(--ease); }
.giro:hover { border-color: var(--ink); }
.giro:active { transform: scale(0.96); }
.giro .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.giro[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Escena del hero: pantalla grande + teléfono, cambian con el giro */
.stage { position: relative; aspect-ratio: 1.22; }
.stage .frame { position: absolute; inset: 4% 12% 10% 0; border-radius: 18px; background: var(--night); padding: 10px; box-shadow: var(--shadow-l); transform: rotate(-1.2deg); }
.stage .frame img, .stage .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: 10px; background: var(--paper-2); }
.stage .phone { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 0.47; border-radius: 26px; background: var(--night); padding: 7px; box-shadow: var(--shadow-l); transform: rotate(3deg); }
.stage .phone img { border-radius: 20px; }
.stage .shot { transition: opacity 360ms var(--ease), transform 420ms var(--ease); }
.stage.swap .shot { opacity: 0; transform: translateY(10px) scale(0.985); }
.stage .badge { position: absolute; left: -2%; bottom: 4%; display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem 0.7rem 0.7rem; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-l); font-size: 0.9rem; line-height: 1.25; max-width: 62%; animation: float calc(5s * var(--mo)) ease-in-out infinite alternate; }
.stage .badge .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--g); color: var(--on-g); flex: none; transition: background 400ms; }
.stage .badge b { display: block; font-family: var(--f-d); font-size: 1.05rem; }
.stage .badge span { color: var(--ink-3); }

/* Maqueta del portal del expositor (showroom), en HTML */
.mock { position: absolute; inset: 4% 8% 6% 0; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-l); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.8rem; transform: rotate(-1deg); }
.mock .mtag { position: relative; padding: 1rem 1rem 1rem 1.6rem; border-radius: 16px; background: linear-gradient(150deg, var(--g), color-mix(in srgb, var(--g) 65%, black)); color: #fff; }
.mock .mtag::before { content: ''; position: absolute; left: 0.65rem; top: 1.1rem; width: 9px; height: 9px; border-radius: 50%; background: var(--card); }
.mock .mtag small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.mock .mtag b { display: block; font: 800 2rem/1.1 var(--f-d); letter-spacing: -0.02em; }
.mock .mtag span { font-size: 0.82rem; opacity: 0.85; }
.mock ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mock li { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.mock li:first-child { border-top: 0; }
.mock li i { width: 34px; height: 34px; border-radius: 10px; background: var(--g-soft); flex: none; }
.mock li strong { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock li em { font-style: normal; font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; }
.mock .mbars { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.mock .mbars span { flex: 1; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--g) 55%, var(--paper)); }

/* ── Franja de hechos ── */
.facts { border-block: 1px solid var(--line); background: var(--card); }
.facts ul { list-style: none; margin: 0 auto; padding: 1rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.2rem; }
@media (min-width: 900px) { .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem; font-weight: 600; line-height: 1.25; }
.facts svg.i { color: var(--brand); }

/* ── Secciones ── */
.sec { padding: 4.5rem 0; }
@media (min-width: 900px) { .sec { padding: 6.5rem 0; } }
.kick { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.sec h2 { font-size: clamp(2rem, 5.6vw, 3.3rem); font-weight: 800; max-width: 17em; }
.sec .sub { margin-top: 1rem; max-width: 38em; font-size: 1.08rem; color: var(--ink-2); }

/* Para tu giro: tarjetas que cambian */
.giro-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; }
.giro-head h2 .gname { background: linear-gradient(transparent 64%, color-mix(in srgb, var(--g) 75%, transparent) 64%, color-mix(in srgb, var(--g) 75%, transparent) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; transition: background 400ms; }
.feat-grid { margin-top: 2.4rem; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feat { padding: 1.15rem 1.2rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.55rem; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat .fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--g-soft); color: var(--ink); transition: background 400ms; }
.feat h3 { font-size: 1.18rem; letter-spacing: -0.015em; }
.feat p { color: var(--ink-2); font-size: 0.97rem; }
.feat .plan-tag { align-self: flex-start; margin-top: auto; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--paper-2); font-size: 0.76rem; font-weight: 700; color: var(--ink-2); }
.feat-grid.swap .feat { animation: rise calc(420ms * var(--mo)) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms * var(--mo)); }
.reco { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0.9rem 0.9rem 1.2rem; border-radius: var(--r); background: var(--ink); color: var(--on-night); max-width: 100%; }
.reco { flex-wrap: wrap; justify-content: space-between; }
.reco small { display: block; white-space: nowrap; font-size: 0.78rem; color: var(--on-night-2); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.reco b { font: 800 1.25rem/1.15 var(--f-d); }
.reco .btn { background: var(--g); color: var(--on-g); min-height: 44px; }

/* ── Sin internet (banda oscura) ── */
.dark { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.dark .kick { color: var(--on-night-2); }
.dark .sub { color: var(--on-night-2); }
.off-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .off-grid { grid-template-columns: 1fr 1fr; } }
.off-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.off-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.off-steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--night-2); background: var(--night-2); font: 800 0.95rem var(--f-d); flex: none; color: var(--brand); }
.off-steps b { display: block; font-size: 1.05rem; }
.off-steps span { color: var(--on-night-2); font-size: 0.96rem; }
/* El ticket que se queda en el aparato y luego sube */
.tq { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.ticket { position: relative; background: var(--paper); color: var(--ink); border-radius: 14px 14px 0 0; padding: 1.3rem 1.3rem 1.6rem; font-variant-numeric: tabular-nums; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 60%); }
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x; }
.ticket .th { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding-bottom: 0.8rem; border-bottom: 1.5px dashed var(--line-2); }
.net { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: #fde7df; color: var(--bad); transition: background 300ms, color 300ms; }
.net.on { background: #dff2e7; color: var(--ok); }
.ndot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ticket ul { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.ticket li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.ticket li .st { font-size: 0.78rem; font-weight: 700; color: var(--ink-3); }
.ticket li .st.ok { color: var(--ok); }
.ticket .tt { display: flex; justify-content: space-between; margin-top: 0.8rem; font: 800 1.3rem var(--f-d); }

/* ── Todo lo que trae (mosaico) ── */
.bento { margin-top: 2.6rem; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } .b-wide { grid-column: span 4; } .b-mid { grid-column: span 3; } .b-sm { grid-column: span 2; } }
.tile { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 200px; }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--ink-2); font-size: 0.97rem; max-width: 30em; }
.tile .pic { margin: 0.8rem -1.4rem -1.4rem 1.4rem; border-radius: 14px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tile.ink { background: var(--ink); color: var(--on-night); border-color: var(--ink); }
.tile.ink p { color: var(--on-night-2); }
.tile.tint { background: var(--paper-2); }
.tile .big { font: 800 clamp(2.4rem, 6vw, 3.4rem)/1 var(--f-d); letter-spacing: -0.03em; }
.tile .row-ic { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; }
.tile .row-ic span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.tile.ink .row-ic span { background: var(--night-2); border-color: var(--night-2); color: var(--on-night); }

/* ── Tienda en línea y consignación (dos módulos) ── */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split.rev > :first-child { order: 2; } }
.list-check { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.list-check li { display: flex; gap: 0.7rem; align-items: flex-start; }
.list-check svg.i { color: var(--ok); margin-top: 2px; }
.list-check b { font-weight: 700; }
.price-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin-top: 1.5rem; padding: 0.6rem 1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 0.95rem; }
.price-pill b { font-family: var(--f-d); }
.duo { position: relative; aspect-ratio: 1.25; }
.duo .d1 { position: absolute; inset: 0 14% 12% 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-l); border: 1px solid var(--line); background: var(--paper-2); }
.duo .d2 { position: absolute; right: 0; bottom: 0; width: 30%; aspect-ratio: 0.46; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-l); border: 6px solid var(--night); background: var(--paper-2); }
.duo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.consig { --g: #6c4cf0; --on-g: #fff; --g-soft: color-mix(in srgb, #6c4cf0 14%, var(--paper)); position: relative; aspect-ratio: 1.15; }
.consig .mock { inset: 0 10% auto 0; transform: none; }
.consig .chip-e { position: absolute; right: 0; bottom: 0; width: 46%; padding: 1rem; border-radius: 18px; background: var(--ink); color: var(--on-night); box-shadow: var(--shadow-l); font-size: 0.88rem; display: flex; flex-direction: column; gap: 0.4rem; }
.consig .chip-e b { font: 800 1.05rem var(--f-d); }
.consig .chip-e span { color: var(--on-night-2); }
.consig .chip-e .ok-l { display: inline-flex; gap: 0.35rem; align-items: center; color: #8be0ae; font-weight: 700; }

/* ── Precios ── */
.bill { display: inline-flex; margin-top: 1.8rem; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.bill button { min-height: 42px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; font: 600 0.95rem var(--f); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background 200ms, color 200ms; }
.bill button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.bill em { font-style: normal; font-size: 0.78rem; margin-left: 0.3rem; color: var(--ok); }
.bill button[aria-pressed='true'] em { color: #8be0ae; }
.plans { margin-top: 2rem; display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; padding: 1.6rem 1.5rem 1.9rem; border-radius: 20px 20px 0 0; background: var(--card); border: 1px solid var(--line); border-bottom: 0; display: flex; flex-direction: column; gap: 0.9rem; }
/* Borde de ticket */
.plan::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--card) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--card) 0) 0 0 / 16px 12px repeat-x; filter: drop-shadow(0 1px 0 var(--line)); }
.plan.star { background: var(--ink); color: var(--on-night); border-color: var(--ink); }
.plan.star::after { background: linear-gradient(-45deg, transparent 8px, var(--ink) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--ink) 0) 0 0 / 16px 12px repeat-x; filter: none; }
.plan .ph { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.plan h3 { font-size: 1.5rem; }
.plan .tagl { font-size: 0.93rem; color: var(--ink-3); }
.plan.star .tagl { color: var(--on-night-2); }
.plan .ribbon { padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--brand); color: var(--ink); font-size: 0.76rem; font-weight: 800; white-space: nowrap; }
.plan .pr { display: flex; align-items: baseline; gap: 0.35rem; font-variant-numeric: tabular-nums; padding-bottom: 0.9rem; border-bottom: 1.5px dashed var(--line-2); }
.plan.star .pr { border-bottom-color: #4a4337; }
.plan .pr b { font: 800 2.9rem/1 var(--f-d); letter-spacing: -0.03em; }
.plan .pr span { font-size: 0.95rem; color: var(--ink-3); }
.plan.star .pr span { color: var(--on-night-2); }
.plan .iva { font-size: 0.84rem; color: var(--ink-3); margin-top: -0.4rem; }
.plan.star .iva { color: var(--on-night-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.96rem; }
.plan li { display: flex; gap: 0.55rem; align-items: flex-start; }
.plan li svg.i { width: 19px; height: 19px; color: var(--ok); margin-top: 2px; }
.plan.star li svg.i { color: #8be0ae; }
.plan .btn { width: 100%; margin-top: 0.4rem; }
.plan.star .btn-primary { background: var(--brand); color: var(--ink); box-shadow: none; }
.addons { margin-top: 3rem; display: grid; gap: 0.9rem; }
@media (min-width: 900px) { .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.addon { display: flex; gap: 1rem; padding: 1.2rem; border-radius: var(--r); background: var(--card); border: 1.5px dashed var(--line-2); }
.addon .ai { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--paper-2); flex: none; }
.addon h3 { font-size: 1.12rem; }
.addon p { color: var(--ink-2); font-size: 0.93rem; margin-top: 0.25rem; }
.addon .ap { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.addon .ap span { padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--paper-2); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.addon .ap span b { font-variant-numeric: tabular-nums; }
.packs { margin-top: 2.4rem; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.packs h3 { padding: 1.1rem 1.3rem 0.4rem; font-size: 1.15rem; }
.packs ul { list-style: none; margin: 0; padding: 0; }
.packs li { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.3rem; border-top: 1px solid var(--line); }
.packs li:first-child { border-top: 0; }
.packs .pd { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.packs .pn { flex: 1; min-width: 0; }
.packs .pn strong { display: block; }
.packs .pn span { font-size: 0.88rem; color: var(--ink-3); }
.packs .pp { text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.packs .pp b { font: 800 1.2rem var(--f-d); white-space: nowrap; }
.packs .pp small { display: block; font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }
.packs li.on { background: var(--g-soft); }
.fine { margin-top: 1.4rem; font-size: 0.86rem; color: var(--ink-3); max-width: 60em; }

/* Comparar (plegado) */
.compare { margin-top: 1.4rem; }
.compare summary { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; cursor: pointer; list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare[open] summary svg { transform: rotate(45deg); }
.ctable { margin-top: 1rem; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.ctable table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.93rem; }
.ctable th, .ctable td { padding: 0.7rem 0.9rem; border-top: 1px solid var(--line); text-align: left; }
.ctable thead th { border-top: 0; background: var(--paper-2); font-weight: 700; }
.ctable td:not(:first-child), .ctable th:not(:first-child) { text-align: center; width: 15%; }
.ctable .grp td { background: var(--paper); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.ctable .y { color: var(--ok); font-weight: 800; }
.ctable .n { color: var(--line-2); }
.ctable .x { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }

/* ── Preguntas ── */
.faq { margin-top: 2.2rem; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font: 700 1.08rem/1.3 var(--f-d); letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform 240ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 48em; }

/* ── Registro ── */
.join { background: var(--night); color: var(--on-night); }
.join-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 980px) { .join-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.join h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
.join .sub { color: var(--on-night-2); }
.join .wa { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-night); font-weight: 600; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 1.5rem; box-shadow: 0 30px 70px -30px rgb(0 0 0 / 70%); }
@media (min-width: 640px) { .form { padding: 2rem; } }
.form h3 { font-size: 1.6rem; }
.form .fsub { margin-top: 0.3rem; color: var(--ink-3); }
.fgrid { margin-top: 1.4rem; display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field > label, .field .lab { font-size: 0.92rem; font-weight: 600; }
.field input:not([type=radio]):not([type=checkbox]) { min-height: 50px; padding: 0 0.95rem; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); font: 400 1rem var(--f); color: var(--ink); width: 100%; transition: border-color 160ms, box-shadow 160ms; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.field .err { display: none; font-size: 0.85rem; color: var(--bad); font-weight: 600; margin: 0; }
.field.bad input { border-color: var(--bad); }
.field.bad .err { display: block; }
.picks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.picks label { position: relative; cursor: pointer; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 0.9rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font-size: 0.92rem; font-weight: 600; white-space: nowrap; transition: background 160ms, color 160ms, border-color 160ms; }
.picks input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.picks input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.trap { position: absolute; left: -9999px; }
.ts { min-height: 0; }
.form-error { padding: 0.75rem 0.9rem; border-radius: 12px; background: #fde7df; color: var(--bad); font-size: 0.92rem; font-weight: 600; }
.form-error a { color: inherit; }
#lead-go { width: 100%; margin-top: 0.4rem; }
.help { font-size: 0.88rem; color: var(--ink-3); }
.privacy-note { margin-top: 0.4rem; font-size: 0.76rem; line-height: 1.5; color: var(--ink-3); }
.done { text-align: center; padding: 1.5rem 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; outline: none; }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #dff2e7; color: var(--ok); animation: pop 400ms var(--spring) both; }
.done-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.done h3 { font-size: 1.5rem; }
.done p { color: var(--ink-2); max-width: 30em; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; }
.lead-stack { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.9rem; }

/* ── Pie ── */
footer { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-size: 0.93rem; }
footer nav a { text-decoration: none; color: var(--ink-2); padding: 0.4rem 0; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }
footer small { color: var(--ink-3); }

/* ── Entrar ── */
dialog.entrar { width: min(440px, 100% - 32px); border: 0; border-radius: var(--r-l); padding: 1.6rem; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-l); }
dialog.entrar::backdrop { background: rgb(23 20 15 / 50%); backdrop-filter: blur(3px); }
dialog.entrar h2 { font-size: 1.5rem; }
dialog.entrar p { color: var(--ink-2); margin: 0.5rem 0 1.1rem; font-size: 0.96rem; }
dialog.entrar label { font-weight: 600; font-size: 0.92rem; }
.campo { display: flex; align-items: center; margin-top: 0.4rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); overflow: hidden; }
.campo:focus-within { border-color: var(--ink); }
.campo input { flex: 1; min-width: 0; min-height: 50px; border: 0; padding: 0 0.9rem; font: 400 1rem var(--f); background: transparent; outline: none; }
.campo .sufijo { padding: 0 0.9rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
dialog.entrar .error { display: block; margin-top: 0.5rem; color: var(--bad); font-size: 0.88rem; font-weight: 600; }
dialog.entrar .acciones { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.3rem; }
dialog.entrar .ayuda { display: block; margin-top: 1rem; font-size: 0.85rem; color: var(--ink-3); }

/* Barra fija del teléfono */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0.7rem var(--gut) calc(0.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 300ms var(--ease); }
.mbar.show { transform: none; }
.mbar .btn { width: 100%; }
@media (min-width: 900px) { .mbar { display: none; } }

/* ── Movimiento ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity calc(600ms * var(--mo)) var(--ease), transform calc(700ms * var(--mo)) var(--ease); transition-delay: calc(var(--d, 0) * 60ms * var(--mo)); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .stage .badge { left: 0; bottom: -2%; max-width: 72%; padding: 0.55rem 0.7rem 0.55rem 0.55rem; font-size: 0.8rem; gap: 0.5rem; }
  .stage .badge .ico { width: 30px; height: 30px; border-radius: 9px; }
  .stage .badge .ico svg.i { width: 18px; height: 18px; }
  .stage .badge b { font-size: 0.92rem; }
}
@media (max-width: 600px) {
  .packs li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; row-gap: 0.3rem; align-items: start; }
  .packs .pd { margin-top: 0.4rem; }
  .packs .pp { grid-column: 2; text-align: left; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.5rem; }
  .packs .pp small { white-space: normal; }
}
