/* Cero Cola — landing y páginas legales. Mismos colores y fuentes que la app (apps/mobile/src/theme.ts).
   Coral es la marca pero nunca es color de texto chico: fondo de botón con texto Tinta encima. */
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/Sora_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/Sora_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --ink: #1B1F3B;        /* Tinta */
  --ink-2: #12152B;
  --paper: #F6F4EF;      /* Papel */
  --paper-2: #EFECE5;
  --coral: #FF6B4A;      /* Coral turno */
  --coral-soft: #FDE3DC;
  --lilac: #C7C3E6;      /* Lila suave */
  --lilac-soft: #ECEAF6;
  --muted: #6B6A7B;
  --line: #E3DFD6;
  --white: #FFFFFF;
  --ok: #2E8B57;
  --radius: 18px;
  --max: 1120px;
  /* Alias usados por el móvil de la portada (story.css) */
  --blue: var(--ink);
  --blue-soft: var(--lilac-soft);
  --red: var(--coral);
  --bg-alt: var(--paper-2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.025em; font-family: 'Sora', 'DM Sans', sans-serif; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ''; width: 18px; height: 10px; border-radius: 3px; background: var(--coral); } /* mini ticket */
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-alt { background: var(--paper-2); }
section[id] { scroll-margin-top: 72px; }
.section-head { max-width: 680px; margin-bottom: 44px; display: grid; gap: 14px; }
.center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }

/* Patrón de los banners de la app (tijeras, diente, reloj, ticket) como fondo de sección */
.pattern-coral { background: var(--coral) url('/img/patron-coral.png') 0 0 / 240px 240px repeat; }
.pattern-tinta { background: var(--ink) url('/img/patron-tinta.png') 0 0 / 240px 240px repeat; }
.pattern-papel { background: var(--coral-soft) url('/img/patron-papel.png') 0 0 / 240px 240px repeat; }

/* Línea de corte del ticket (separador entre secciones) */
.cut { height: 0; border-top: 3px dashed var(--line); max-width: var(--max); margin: 0 auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #FF7D60; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(246,244,239,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--muted); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(27,31,59,0.35); }
.card p { color: var(--muted); font-size: 16px; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lilac-soft); color: var(--ink); margin-bottom: 6px; }
.icon.coral { background: var(--coral); color: var(--ink); }
.icon svg { width: 24px; height: 24px; }

/* Rubros */
.rubros { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rubro { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--ink); border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 16px; box-shadow: 0 18px 30px -22px rgba(0,0,0,0.5); }
.rubro i { font-style: normal; font-size: 20px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--ink); color: var(--white); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 12px; background: var(--coral); color: var(--ink); display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 20px; }
.step p { color: rgba(255,255,255,0.8); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--ok); margin-top: 2px; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { position: relative; background: var(--white); color: var(--ink); border: 1.5px solid transparent; border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55); }
.plan.featured { box-shadow: 0 0 0 3px var(--coral), 0 36px 70px -30px rgba(0,0,0,0.65); }
.plan .tag { position: absolute; top: -13px; left: 26px; background: var(--coral); color: var(--ink); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.price { font-family: 'Sora', sans-serif; font-size: 42px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 16px; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.plan .btn { width: 100%; }
.plan .btn-ghost { border-color: var(--ink); }
.plans-note { margin-top: 26px; text-align: center; font-size: 15px; }
.plan .saving { color: var(--ok); font-weight: 700; font-size: 14px; margin-top: -8px; }

/* Secciones oscuras con patrón */
.on-dark { color: var(--white); }
.on-dark .kicker { color: rgba(255,255,255,0.75); }
.on-dark .lead, .on-dark .plans-note { color: rgba(255,255,255,0.82); }

/* Preguntas */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--ink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* Descarga: un gran ticket coral con muescas y línea de corte */
.download { position: relative; border-radius: 32px; padding: clamp(36px, 6vw, 64px); display: grid; gap: 18px; text-align: center; justify-items: center; overflow: hidden; color: var(--ink); }
.download::before, .download::after { content: ''; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--paper); }
.download::before { left: -22px; } .download::after { right: -22px; }
.download .kicker { color: var(--ink); }
.download .kicker::before { background: var(--ink); }
.download .lead { color: var(--ink); max-width: 560px; }
.download .btn-apk { min-height: 60px; font-size: 18px; padding: 0 30px; margin-top: 6px; background: var(--ink); color: var(--white); box-shadow: 0 20px 40px -18px rgba(0,0,0,0.5); }
.apk-meta { font-size: 14px; font-weight: 500; }
.apk-help { font-size: 13px; max-width: 520px; opacity: 0.85; }

/* Pie */
footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 36px 0 44px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: rgba(255,255,255,0.8); text-decoration: none; font-weight: 500; }
footer a:hover { color: var(--white); }
footer .brand { color: var(--white); }
[data-whatsapp][hidden] { display: none !important; }

/* Páginas legales */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; }
.legal .updated { color: var(--muted); margin: 10px 0 34px; font-size: 15px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: #34384A; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal .box { background: var(--lilac-soft); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.pole { height: 6px; background: var(--coral); } /* franja de marca arriba y abajo */

/* Selector de período y prueba gratis (js/plans.js) */
.trial-banner { max-width: 640px; margin: -16px auto 26px; text-align: center; background: #E8F5EE; color: #1F6B43; border-radius: 14px; padding: 14px 18px; font-weight: 700; }
.period-tabs { display: flex; gap: 6px; justify-content: center; margin: 0 auto 30px; background: var(--white); border-radius: 999px; padding: 6px; width: max-content; max-width: 100%; }
.period-tabs button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.period-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.period-tabs small { font-weight: 700; color: var(--ok); margin-left: 4px; }
.period-tabs button[aria-selected="true"] small { color: #CDEFD9; }
@media (max-width: 480px) { .period-tabs button { padding: 9px 12px; font-size: 14px; } }
[data-apk][hidden], [data-trial][hidden], [data-periods][hidden], [data-apk-meta][hidden] { display: none !important; }
