/*
 * Saturnera · landing. Fondo claro: lila suave con brillos pastel en el inicio
 * y el cierre, blanco en el resto. Encabezado en píldora flotante, botones en píldora.
 * Colores en variables, acá arriba.
 */
:root {
  color-scheme: light;
  --ink: #1d1d3d;        /* navy de fondo y botón primario en claro */
  --g1: #7b2ff2;         /* gradiente de los botones: violeta */
  --g2: #e0479e;         /* gradiente de los botones: rosa */
  --grad: linear-gradient(to right, var(--g1), var(--g2));
  --lilac-bg: #efe1ff;   /* fondo de íconos y marcos */
  --bg: #ffffff;
  --soft: #f5f0ff;       /* fondo lila suave del inicio y el cierre */
  --card: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;
  --body: #314158;
  --muted: #62748e;
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--g1); outline-offset: 3px; border-radius: 8px; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1024px; margin-inline: auto; }
.wrap-text { max-width: 896px; margin-inline: auto; text-align: center; }

.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 9999px; font-weight: 600; }
.saltar:focus { top: 16px; }

/* ---------- Encabezado en píldora ---------- */
.hdr { position: fixed; z-index: 50; top: calc(24px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 1280px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: 28px; border-radius: 9999px; color: var(--text); background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), top .3s var(--ease); }
.hdr.scrolled { background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--body);
  box-shadow: 0 10px 30px -12px rgb(15 23 42 / .25); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; letter-spacing: -.4px; }
.logo svg { flex: none; }
.nav { display: flex; gap: 32px; font-size: 15px; }
.nav a { opacity: .9; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.hdr-actions { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.hdr .btn-sm { padding: 10px 20px; font-size: 14px; background: var(--grad); color: #fff; }
@media (max-width: 860px) { .nav, .hdr-login { display: none; } .hdr { padding-inline: 18px; height: 62px; top: calc(12px + env(safe-area-inset-top, 0px)); } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 9999px; font-weight: 600; font-size: 16px; padding: 12px 24px; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.btn:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-grad { background: var(--grad); color: #fff; font-size: 22px; padding: 20px 44px; }
.btn-grad:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -10px rgb(123 47 242 / .6); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; font-size: 19px; padding: 18px 40px; }
.btn-ink:hover { box-shadow: 0 14px 30px -12px rgb(29 29 61 / .55); }
@media (max-width: 600px) { .btn-grad { font-size: 18px; padding: 16px 32px; } .btn-ink { font-size: 17px; padding: 15px 30px; } }

/* ---------- Inicio (claro) ---------- */
.soft { background: var(--soft); color: var(--text); position: relative; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .55; }
.glow.a { width: 560px; height: 560px; background: #d8c2ff; top: -180px; left: -200px; }
.glow.b { width: 520px; height: 520px; background: #ffc6e4; bottom: -120px; right: -220px; opacity: .6; }
.glow.c { width: 420px; height: 420px; background: #c7d2fe; top: 40%; left: 55%; opacity: .45; }
.glow.glow-facts { top: -200px; bottom: auto; opacity: .25; }
.glow.glow-rubros { top: 30%; opacity: .35; }
.glow.glow-final { left: 20%; top: -260px; }
.hero { padding-block: 168px 0; position: relative; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .4px; color: #5b21b6;
  border: 1px solid rgb(123 47 242 / .2); background: #fff; padding: 6px 14px; border-radius: 9999px; margin-bottom: 24px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / .2); }
.h1 { font-size: 60px; line-height: 64px; font-weight: 600; letter-spacing: -1.6px; }
.h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; line-height: 30px; font-weight: 400; color: var(--body); max-width: 620px; margin: 24px auto 40px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-note a, details p a { color: #5b21b6; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .h1 { font-size: 38px; line-height: 44px; letter-spacing: -1px; } .lead { font-size: 17px; line-height: 26px; } .hero { padding-block: 120px 0; } }

/* Pestañas */
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 64px auto 32px; }
.tab { padding: 12px 22px; border-radius: 9999px; font: 500 15px/1 var(--font); color: var(--muted); background: transparent; border: 0; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: #fff; color: #5b21b6; box-shadow: 0 6px 20px -8px rgb(91 33 182 / .35); }

/* Navegador de muestra */
.device { max-width: 900px; margin-inline: auto; background: #fff; border: 1px solid #e4d8ff; border-bottom: 0; border-radius: 24px 24px 0 0; padding: 12px 12px 0;
  box-shadow: 0 -20px 80px -30px rgb(123 47 242 / .4); }
.screen { background: #fff; border: 1px solid var(--line); border-bottom: 0; color: var(--text); border-radius: 14px 14px 0 0; overflow: hidden; text-align: left; min-height: 360px; }
.appbar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.appbar b { color: var(--text); font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.appbar .sp { flex: 1; }
.pill { background: var(--lilac-bg); color: #5b21b6; padding: 3px 10px; border-radius: 9999px; font-weight: 500; white-space: nowrap; }
.pill-sm { font-size: 11px; }
.panel { display: none; padding: 18px; }
.panel.on { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Agenda */
.cal { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); font-size: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal .h { background: #1f2937; color: #fff; padding: 10px; text-align: center; font-weight: 500; }
.cal .t { color: var(--muted); padding: 8px 6px; border-top: 1px solid var(--line); height: 64px; font-variant-numeric: tabular-nums; }
.cal .c { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 4px; position: relative; height: 64px; }
.cal-mini { grid-template-columns: 40px repeat(2, minmax(0, 1fr)); }
.cal-mini .t, .cal-mini .c { height: 48px; }
.ev { border-radius: 8px; padding: 6px 8px; line-height: 16px; height: 100%; }
.ev b { display: block; font-weight: 600; }
.ev span { color: rgb(15 23 42 / .7); }
.ev.p { background: #f5c2f7; } .ev.g { background: #bbf7a6; } .ev.y { background: #fcd889; } .ev.b { background: #a5dcfd; } .ev.v { background: #ddd0ff; }
.ev.tall { height: calc(200% + 1px); position: relative; z-index: 1; }

/* Reservas */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc { border: 1.5px solid #e879c6; border-radius: 14px; padding: 16px; }
.svc-name { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.svc .meta { font-size: 12px; color: var(--muted); }
.svc .price { font-size: 18px; font-weight: 600; margin: 8px 0; }
.svc .add { display: inline-block; margin-top: 10px; background: #e0479e; color: #fff; font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 8px; }
.svc-mini { padding: 12px; }
.svc-mini .svc-name { font-size: 13px; }
.svc-mini .price { font-size: 15px; }
.svc-mini .add { margin-top: 4px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 12px; }
.slots span { border: 1px solid var(--line); border-radius: 8px; padding: 8px 0; text-align: center; font-variant-numeric: tabular-nums; }
.slots .sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.slots .off { color: #cbd5e1; text-decoration: line-through; }
.mini-h { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.days { display: flex; gap: 6px; margin-bottom: 14px; }
.days span { flex: 1; text-align: center; border-radius: 10px; padding: 6px 0; font-size: 11px; color: var(--muted); border: 1px solid var(--line); }
.days span b { display: block; font-size: 15px; color: var(--text); }
.days .sel { background: var(--lilac-bg); border-color: #c4a3ff; }

/* Recordatorios (el mail que recibe la clienta) */
.remind { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.mail { border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 13px; line-height: 19px; }
.mail-h { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.mail-h b { display: block; font-weight: 600; }
.mail-h small { color: var(--muted); font-size: 11px; }
.mail-d { margin: 12px 0 14px; display: grid; gap: 6px; }
.mail-d div { display: flex; gap: 10px; }
.mail-d dt { color: var(--muted); width: 64px; flex: none; }
.mail-d dd { margin: 0; font-weight: 500; }
.mail .add { display: inline-block; background: #e0479e; color: #fff; font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 8px; }
.rules { display: flex; flex-direction: column; gap: 10px; }
.rule { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.rule small { display: block; color: var(--muted); font-size: 11px; }
.sw { width: 34px; height: 20px; border-radius: 9999px; background: #22c55e; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.sw.off { background: #cbd5e1; } .sw.off::after { right: auto; left: 2px; }

/* Cobros */
.pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi small { color: var(--muted); font-size: 11px; }
.kpi b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tx { width: 100%; border-collapse: collapse; font-size: 12px; }
.tx td { padding: 9px 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tx td:last-child { text-align: right; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 9999px; font-weight: 500; white-space: nowrap; }
.chip.ok { background: #dcfce7; color: #166534; } .chip.pend { background: #fef3c7; color: #92400e; }
@media (max-width: 700px) {
  .book, .remind { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr 1fr; } .pay .kpi:last-child { display: none; }
  .cal { grid-template-columns: 40px repeat(2, minmax(0, 1fr)); } .cal .x3 { display: none; }
  .appbar .ej { display: none; }
}

/* ---------- Datos ---------- */
.facts { padding-block: 72px 88px; position: relative; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.fact b { display: block; font-size: 52px; line-height: 56px; font-weight: 600; letter-spacing: -1.2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { font-size: 18px; color: var(--body); }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; } .fact b { font-size: 40px; line-height: 44px; } }

/* ---------- Rubros ---------- */
.h2 { font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -.9px; }
.h2-xl { font-size: 44px; line-height: 50px; }
.sub { font-size: 18px; line-height: 28px; color: var(--muted); margin-top: 16px; }

@media (max-width: 700px) { .h2, .h2-xl { font-size: 28px; line-height: 34px; } }
.rubros { padding-block: 24px 112px; position: relative; }
.rubros .wrap-text { margin-bottom: 48px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rcard { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; display: flex; align-items: flex-end; padding: 22px 24px; isolation: isolate; }
.rcard .art { position: absolute; inset: 0; z-index: -2; transition: transform .5s var(--ease); }
.rcard:hover .art { transform: scale(1.06); }
.rcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 60%); }
.rcard .ico { position: absolute; top: 22px; left: 24px; width: 52px; height: 52px; border-radius: 14px; background: rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; }
.rcard h3 { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; width: 100%; font-size: 22px; line-height: 28px; font-weight: 600; color: #fff; }
.rcard h3 svg { flex: none; transition: transform .25s var(--ease); }
.rcard:hover h3 svg { transform: translateX(4px); }
.a1 { background: radial-gradient(120% 90% at 80% 10%, #f9a8d4, transparent 60%), linear-gradient(135deg, #7c3aed, #db2777); }
.a2 { background: radial-gradient(120% 90% at 20% 0%, #fcd34d, transparent 55%), linear-gradient(135deg, #be185d, #f97316); }
.a3 { background: radial-gradient(120% 90% at 90% 20%, #a5f3fc, transparent 55%), linear-gradient(135deg, #4338ca, #0891b2); }
.a4 { background: radial-gradient(120% 90% at 10% 10%, #ddd6fe, transparent 55%), linear-gradient(135deg, #6d28d9, #4f46e5); }
.a5 { background: radial-gradient(120% 90% at 85% 0%, #fbcfe8, transparent 55%), linear-gradient(135deg, #9d174d, #7c3aed); }
.a6 { background: radial-gradient(120% 90% at 15% 0%, #bbf7d0, transparent 55%), linear-gradient(135deg, #047857, #4338ca); }
@media (max-width: 860px) { .rgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rgrid { grid-template-columns: 1fr; } .rcard { aspect-ratio: 16 / 9; } }

/* ---------- Funciones (claro) ---------- */
.light { padding-block: 112px; }
.light .wrap-text { display: flex; flex-direction: column; align-items: center; gap: 32px; margin-bottom: 56px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: 40px 40px 0 0; padding: 40px 40px 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.fcard h3 { font-size: 20px; line-height: 28px; font-weight: 500; }
.fcard ul { margin: 12px 0 0; padding-left: 20px; color: var(--body); font-size: 14px; line-height: 24px; }
.frame { margin-top: auto; padding-top: 28px; }
.frame-in { background: var(--lilac-bg); border-radius: 32px 32px 0 0; padding: 20px 20px 0; }
.frame-ui { background: #fff; border-radius: 16px 16px 0 0; padding: 16px; font-size: 12px; box-shadow: 0 -6px 24px -12px rgb(91 33 182 / .35); min-height: 150px; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } .fcard { padding: 32px 24px 0; border-radius: 32px 32px 0 0; } }

.client { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.client:last-child { border-bottom: 0; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 11px; color: #fff; flex: none; }
.av-1 { background: #7b2ff2; } .av-2 { background: #e0479e; } .av-3 { background: #0891b2; }
.client .n { flex: 1; min-width: 0; }
.client .n b { display: block; font-weight: 600; font-size: 12px; }
.client .n small { color: var(--muted); font-size: 11px; }
.bar { height: 8px; border-radius: 9999px; background: #f1f5f9; overflow: hidden; margin: 6px 0 12px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.bar .w78 { width: 78%; } .bar .w64 { width: 64%; } .bar .w50 { width: 50%; }
.row { display: flex; justify-content: space-between; font-size: 12px; }
.row b { font-variant-numeric: tabular-nums; }

/* Íconos */
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin-top: 88px; }
.chipi { display: flex; align-items: center; gap: 16px; font-size: 18px; color: var(--body); }
.chipi .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--lilac-bg); display: grid; place-items: center; color: var(--ink); flex: none; }
@media (max-width: 760px) { .chips { grid-template-columns: 1fr 1fr; } .chipi { font-size: 15px; } .chipi .ic { width: 48px; height: 48px; } }
.center { display: flex; justify-content: center; margin-top: 64px; }

/* ---------- Banner ---------- */
.banner-sec { padding-block: 24px 112px; }
.banner { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; border-radius: 32px; padding: 56px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.banner .glow.a { width: 420px; height: 420px; left: -180px; top: auto; bottom: -200px; background: #fff; opacity: .25; }
.banner .h2 { font-size: 40px; line-height: 46px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 28px 0 36px; font-size: 17px; line-height: 24px; }
.checks div { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 2px; }
.link-arrow { color: #fff; font-weight: 600; font-size: 19px; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.phone { position: relative; z-index: 1; max-width: 320px; margin-inline: auto; background: #fff; color: var(--text); border-radius: 24px; padding: 18px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.phone .top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; }
.phone .top b { font-weight: 600; }
.phone .step { display: flex; gap: 10px; font-size: 13px; line-height: 19px; padding: 8px 0; }
.phone .step i { width: 22px; height: 22px; border-radius: 50%; background: var(--lilac-bg); color: #5b21b6; font-style: normal; font-weight: 600; font-size: 11px; display: grid; place-items: center; flex: none; }
.phone .step.done i { background: #22c55e; color: #fff; }
.banner-copy { position: relative; z-index: 1; min-width: 0; }
@media (max-width: 860px) { .banner { grid-template-columns: 1fr; padding: 36px 24px; } .banner .h2 { font-size: 30px; line-height: 36px; } .checks { font-size: 15px; } }
@media (max-width: 420px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Planes ---------- */
.planes { padding-block: 16px 112px; }
.planes .wrap-text { margin-bottom: 48px; }
.planes .sub strong { color: var(--text); font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; min-width: 0; }
.plan-top { border: 2px solid var(--ink); }
.plan-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .3px; color: #fff; background: var(--ink); padding: 4px 12px; border-radius: 9999px; margin-bottom: 14px; }
.plan h3 { font-size: 22px; line-height: 28px; font-weight: 600; }
.plan-price { margin-top: 14px; display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: 16px; }
.plan-year { color: var(--muted); font-size: 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.plan-desc { color: var(--body); font-size: 15px; line-height: 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan-list { list-style: none; margin: 16px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 21px; color: var(--body); }
.plan-list li { display: flex; gap: 10px; }
.plan-list li::before { content: "✓"; color: #5b21b6; font-weight: 600; flex: none; }
.plan-list .soon { color: var(--muted); display: block; padding-left: 22px; position: relative; }
.plan-list .soon::before { content: "–"; color: var(--muted); position: absolute; left: 2px; }
.plan-list .soon span { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 500; color: #92400e; background: #fef3c7; padding: 1px 8px; border-radius: 9999px; white-space: nowrap; }
.btn-plan { margin-top: auto; justify-content: center; background: var(--ink); color: #fff; }
.btn-plan:hover { box-shadow: 0 14px 30px -12px rgb(29 29 61 / .55); }
.founders { margin-top: 28px; background: var(--soft); border: 1px solid #e4d8ff; border-radius: 24px; padding: 28px 32px; }
.founders h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.founders p { margin-top: 8px; color: var(--body); font-size: 15px; line-height: 25px; max-width: 80ch; }
.plan-note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 21px; text-align: center; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } .founders { padding: 24px 20px; } }

/* ---------- Preguntas ---------- */
.faq { padding-block: 16px 112px; }
.faq .h2 { text-align: center; margin-bottom: 40px; }
.faq-list { max-width: 768px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; transition: box-shadow .2s; }
details[open] { box-shadow: 0 10px 30px -18px rgb(15 23 42 / .3); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary .pm { width: 28px; height: 28px; border-radius: 50%; background: var(--lilac-bg); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease); }
details[open] summary .pm { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--body); font-size: 15px; line-height: 25px; max-width: 65ch; }

/* ---------- Cierre y pie ---------- */
.final { padding-block: 104px; text-align: center; }
.final .wrap-text { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; }
.final .lead { margin: 0 auto 16px; }
footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding-block: 40px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .logo { color: var(--text); font-size: 18px; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Páginas legales y formulario de arrepentimiento ---------- */
.page-hdr { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.page-hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.page-hdr a.back { font-size: 14px; color: var(--muted); }
.page-hdr a.back:hover { color: var(--text); }
.legal { padding-block: 48px 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -.8px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--body); font-size: 15px; line-height: 26px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.draft { background: #fff7e6; border: 1px solid #f5d38f; color: #7a4b00; border-radius: 14px; padding: 14px 18px; font-size: 14px; line-height: 22px; margin: 16px 0 28px; }
.draft strong { color: #5c3800; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-top: 28px; box-shadow: 0 10px 30px -22px rgb(15 23 42 / .35); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 500; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--g1); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { background: var(--grad); color: #fff; font-size: 16px; padding: 14px 28px; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin-top: 16px; font-size: 15px; line-height: 24px; border-radius: 12px; padding: 14px 16px; }
.form-msg.ok { background: #ecfdf3; color: #14532d; border: 1px solid #a7f3d0; }
.form-msg.err { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.form-msg .code { display: block; font-size: 22px; font-weight: 600; letter-spacing: 1px; margin-top: 6px; }
@media (max-width: 600px) { .legal h1 { font-size: 28px; line-height: 34px; } .form-card { padding: 20px; } }

/* ---------- Registro (registro.html) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reg-body { background: var(--soft); }
.reg { min-height: calc(100vh - 64px); padding-block: 40px 88px; }
.reg-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; max-width: 1040px; }
.reg-main { min-width: 0; }

.reg-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.reg-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 3px solid #e4d8ff; transition: border-color .3s var(--ease), color .3s; min-width: 0; }
.reg-steps .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12px; background: #fff; border: 1px solid #e4d8ff; flex: none; transition: background-color .3s, color .3s, border-color .3s; }
.reg-steps .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-steps li.on { color: var(--text); font-weight: 500; border-color: var(--g1); }
.reg-steps li.on .dot { background: var(--g1); border-color: var(--g1); color: #fff; }
.reg-steps li.done { border-color: #c4a3ff; color: var(--body); }
.reg-steps li.done .dot { background: var(--lilac-bg); border-color: #c4a3ff; color: transparent; position: relative; }
.reg-steps li.done .dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #5b21b6; font-size: 13px; }

.reg-card { background: #fff; border: 1px solid #e9e1fb; border-radius: 28px; padding: 36px 40px; box-shadow: 0 30px 70px -40px rgb(91 33 182 / .45); }
.reg-step { animation: fade .35s var(--ease); }
.reg-h { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.6px; outline: none; }
.reg-p { color: var(--body); font-size: 16px; line-height: 26px; margin: 10px 0 26px; }
.reg-p b { color: var(--text); font-weight: 600; }
.reg-wait { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 24px 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgb(123 47 242 / .25); border-top-color: var(--g1); display: inline-block; animation: girar .8s linear infinite; flex: none; }
.btn .spin { border-color: rgb(255 255 255 / .35); border-top-color: #fff; }
@keyframes girar { to { transform: rotate(360deg); } }

.field input[aria-invalid="true"] { border-color: #f87171; background: #fffafa; }
.opt-tag { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }

/* El link: prefijo y dominio fijos alrededor del campo */
.slug-box { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s; }
.slug-box:focus-within { outline: 2px solid var(--g1); outline-offset: 1px; border-color: transparent; }
.slug-box:has(input[aria-invalid="true"]) { border-color: #f87171; }
.slug-pre, .slug-suf { color: var(--muted); font-size: 15px; white-space: nowrap; padding: 12px 0; }
.slug-pre { padding-left: 14px; }
.slug-suf { padding-right: 14px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.field .slug-box input, .retake .slug-box input { border: 0; outline: none; padding: 12px 2px; border-radius: 0; min-width: 60px; flex: 1; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: transparent; }
.slug-status { min-height: 22px; font-size: 14px; line-height: 22px; margin-top: 2px; color: var(--muted); }
.slug-status.good { color: #15803d; }
.slug-status.good::before { content: "✓ "; font-weight: 700; }
.slug-status.bad { color: #b91c1c; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-btn { font: 500 13px/1 var(--font); color: #5b21b6; background: var(--lilac-bg); border: 1px solid #ddc8ff; border-radius: 9999px; padding: 9px 14px; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-btn:hover { background: #e4d0ff; transform: translateY(-1px); }

/* Opciones del equipo */
.opts { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.opt-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 16px; height: 100%; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.opt-body b { font-size: 16px; font-weight: 600; }
.opt-body small { color: var(--muted); font-size: 13px; line-height: 18px; }
.opt-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--lilac-bg); color: #5b21b6; display: grid; place-items: center; margin-bottom: 8px; transition: background-color .2s, color .2s; }
.opt:hover .opt-body { border-color: #c4a3ff; }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--g1); outline-offset: 2px; }
.opt input:checked + .opt-body { border-color: var(--g1); background: #faf6ff; box-shadow: 0 10px 26px -16px rgb(123 47 242 / .7); }
.opt input:checked + .opt-body .opt-ico { background: var(--grad); color: #fff; }
.opt input:checked + .opt-body small { color: #5b21b6; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; color: var(--body); margin: 4px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--g1); flex: none; cursor: pointer; }
.check b { display: block; color: var(--text); font-weight: 500; font-size: 15px; }
.check small { display: block; color: var(--muted); font-size: 13px; }
.check a { color: #5b21b6; text-decoration: underline; text-underline-offset: 3px; }

.reg-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.reg-actions .btn-submit:only-child { margin-left: auto; }
.btn-ghost { background: transparent; color: var(--muted); padding: 14px 6px; font-size: 15px; }
.btn-ghost:hover { color: var(--text); transform: none; }
.btn-wide { width: 100%; justify-content: center; }
.reg-trust { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* El código */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 380px; margin: 0 0 22px; }
.otp input { width: 100%; aspect-ratio: 5 / 6; text-align: center; font: 600 26px/1 var(--font); color: var(--text); border: 1.5px solid #cbd5e1; border-radius: 14px; background: #fff; caret-color: var(--g1); transition: border-color .15s, box-shadow .15s; }
.otp input:focus { outline: none; border-color: var(--g1); box-shadow: 0 0 0 4px rgb(123 47 242 / .15); }
.otp input[aria-invalid="true"] { border-color: #f87171; background: #fffafa; }
.retake { background: #fff7e6; border: 1px solid #f5d38f; border-radius: 16px; padding: 16px; margin: 0 0 18px; font-size: 14px; line-height: 22px; color: #5c3800; }
.retake .slug-box { margin-top: 10px; }
.reg-help { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 24px; color: var(--muted); display: grid; gap: 4px; }
.linkbtn { font: inherit; font-weight: 500; color: #5b21b6; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* Creando */
.build { list-style: none; margin: 26px 0 8px; padding: 0; display: grid; gap: 14px; }
.build li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; }
.build li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgb(123 47 242 / .25); border-top-color: var(--g1); animation: girar .8s linear infinite; flex: none; box-sizing: border-box; }
.build li.ok { color: var(--text); }
.build li.ok::before { content: "✓"; animation: none; border: 0; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* Listo */
.reg-done { text-align: center; }
.reg-done .reg-p { margin: 10px auto 18px; max-width: 46ch; }
.done-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin: 4px auto 18px; box-shadow: 0 16px 34px -14px rgb(123 47 242 / .7); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done-link { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; background: var(--soft); border: 1px solid #e4d8ff; border-radius: 9999px; padding: 12px 20px; margin-bottom: 18px; }
.done-link a { font-weight: 600; color: #5b21b6; overflow-wrap: anywhere; }

/* Al costado */
.reg-aside { position: sticky; top: 88px; display: grid; gap: 20px; }
.preview { background: #fff; border: 1px solid #e4d8ff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -34px rgb(91 33 182 / .55); }
.pv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbf9ff; }
.pv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e2d6fb; flex: none; }
.pv-url { margin-left: 6px; flex: 1; min-width: 0; font-size: 12px; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-body { padding: 26px 22px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.pv-logo { width: 54px; height: 54px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.pv-name { font-size: 18px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; max-width: 100%; }
.pv-sub { font-size: 12px; color: var(--muted); }
.pv-btn { margin-top: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 18px; border-radius: 9999px; }
.pv-rows { width: 100%; display: grid; gap: 8px; margin-top: 18px; }
.pv-rows i { display: block; height: 34px; border-radius: 10px; background: #f6f2ff; border: 1px solid #efe7ff; }
.incl { list-style: none; margin: 0; padding: 4px 4px 0; display: grid; gap: 12px; font-size: 14px; line-height: 21px; color: var(--body); }
.incl li { position: relative; padding-left: 24px; }
.incl li::before { content: "✓"; position: absolute; left: 0; color: #5b21b6; font-weight: 700; }
.incl b { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .reg-grid { grid-template-columns: 1fr; gap: 20px; }
  .reg-aside { position: static; order: -1; }
  .reg-aside .incl { display: none; }
  .pv-body { flex-direction: row; text-align: left; padding: 14px 16px; gap: 12px; }
  .pv-logo { width: 40px; height: 40px; font-size: 17px; margin: 0; flex: none; }
  .pv-body .pv-sub, .pv-body .pv-btn, .pv-rows { display: none; }
}
@media (max-width: 600px) {
  .reg { padding-block: 16px 56px; }
  .reg-card { padding: 26px 20px; border-radius: 22px; }
  .reg-h { font-size: 23px; line-height: 29px; }
  .reg-p { font-size: 15px; line-height: 24px; margin-bottom: 20px; }
  .reg-steps .lbl { display: none; }
  .reg-steps li { justify-content: center; }
  .opts { grid-template-columns: 1fr; }
  .opt-body { flex-direction: row; align-items: center; gap: 12px; padding: 14px; }
  .opt-ico { margin: 0; flex: none; }
  .opt-body b { white-space: nowrap; }
  .opt-body small { margin-left: auto; text-align: right; }
  .otp { gap: 7px; }
  .otp input { font-size: 22px; border-radius: 12px; }
  .reg-actions { flex-wrap: wrap-reverse; }
  .reg-actions .btn-submit { flex: 1; justify-content: center; }
  .slug-pre { display: none; }
  .field .slug-box input, .retake .slug-box input { padding-left: 14px; }
}
