/* Página pública (presentación del servicio y planes). Mismos colores que el panel. */
:root {
  --bg: #0b0d14; --bg-2: #11141d; --surface: #151925; --surface-2: #1b2030; --border: #252b3d;
  --text: #e7e9f2; --muted: #8a91a8; --accent: #7c5cff; --accent-2: #22d3ee; --accent-soft: rgba(124, 92, 255, .14);
  --success: #22c55e; --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6fb; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f1f3f9; --border: #e3e6ef;
    --text: #151827; --muted: #5b6278; --accent-soft: rgba(124, 92, 255, .10);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right)); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .12s, border-color .12s, background .12s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #8b6dff, #6a4dff); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(124, 92, 255, .32); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn.block { display: flex; width: 100%; }

/* Cabecera */
.top {
  position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top .row { height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.mark svg { width: 18px; height: 18px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav > a:not(.btn) { padding: 8px 12px; color: var(--muted); font-weight: 500; border-radius: 9px; }
.top nav > a:not(.btn):hover { color: var(--text); }

/* Portada */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(520px 320px at 30% 40%, rgba(124, 92, 255, .30), transparent 70%),
              radial-gradient(480px 300px at 72% 30%, rgba(34, 211, 238, .20), transparent 70%);
}
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; max-width: 860px; margin: 0 auto; }
.lead { max-width: 680px; margin: 22px auto 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

/* Secciones */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; text-align: center; }
.section h2 + .muted { margin: 12px auto 0; max-width: 640px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 44px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.ficon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; counter-reset: s; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; position: relative; padding: 26px 24px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700;
}
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); justify-content: center; gap: 20px; margin-top: 44px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 20px 50px rgba(124, 92, 255, .18); }
.plan .tag { position: absolute; top: -12px; left: 24px; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.plan h3 { font-size: 20px; }
.plan .muted { margin: -6px 0 0; font-size: 14.5px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 9px; flex: 1; align-content: start; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 3px; }

.cta-end h2 { margin-bottom: 10px; }

/* Pie */
footer { padding: 34px 0 max(34px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer .foot { flex-wrap: wrap; }
footer a:hover { color: var(--text); }
.legal { margin-top: 14px; font-size: 12.5px; }
.legal p { margin: 2px 0; }

@media (max-width: 760px) {
  .hide-sm { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .ctas .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) { .hide-xs { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
