/* Web pública de Vértigo: mismo terciopelo de medianoche que la app. */
:root {
  --bg: #120a10;
  --bg-deep: #0b0609;
  --surface: #1d1118;
  --surface-hi: #28161f;
  --line: rgba(246, 233, 225, 0.12);
  --line-strong: rgba(246, 233, 225, 0.28);
  --ink: #f6e9e1;
  --ink-soft: #d9c4bc;
  --muted: #a88e9a;
  --gold: #e8c27a;
  --green: #4fd394;
  --orange: #ff8a3d;
  --red: #ff3b3b;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(70% 50% at 85% 0%, rgba(138, 26, 60, 0.55), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(59, 18, 64, 0.7), transparent 70%);
  background-attachment: fixed;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(18, 10, 16, 0.78); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; }
.seal { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0; transform: rotate(-8deg); }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: #1a0d12; }
.nav .hide-sm { display: inline; }

/* Botones con sombra desplazada, como en la app */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 18px; border-top-left-radius: 4px; border: 1.5px solid var(--gold); background: var(--gold); color: #1a0d12; font-weight: 700; text-decoration: none; box-shadow: 5px 5px 0 -1.5px var(--bg), 5px 5px 0 0 var(--gold); transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 -1.5px var(--bg), 3px 3px 0 0 var(--gold); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* Tipografía */
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(46px, 8vw, 88px); line-height: 0.98; margin: 0 0 18px; }
h2 { font-size: clamp(36px, 5vw, 54px); line-height: 1.04; margin: 0 0 14px; }
h3 { font-size: 30px; line-height: 1.1; margin: 0 0 8px; }
em { font-style: italic; color: var(--red); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--muted); }

/* Secciones */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.hero { padding: 72px 0 64px; border-top: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-soft); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card p { margin: 0; }
.level { border-width: 1.5px; text-align: center; }
.level .num { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; margin: 0 auto 10px; font-family: var(--serif); font-size: 28px; }
.level.l1 { border-color: var(--green); color: var(--green); background: rgba(79, 211, 148, 0.08); }
.level.l2 { border-color: var(--orange); color: var(--orange); background: rgba(255, 138, 61, 0.08); }
.level.l3 { border-color: var(--red); color: var(--red); background: rgba(255, 59, 59, 0.08); }
.level h3 { color: var(--ink); }
.level p { color: var(--ink-soft); }
.level .tag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, upper-roman); position: absolute; left: 0; top: 12px; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); width: 44px; text-align: center; }
.steps strong { color: var(--ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.cta { text-align: center; }
.cta .actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* Preguntas frecuentes */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; color: var(--ink); font-weight: 700; list-style: none; }
summary::after { content: '+'; float: right; color: var(--gold); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 10px 0 0; }

/* Blog y textos largos */
.article { padding: 56px 0 72px; }
.article h1 { font-size: clamp(40px, 6vw, 64px); }
.article h2 { font-size: 34px; margin-top: 40px; }
.article p, .article li { color: var(--ink-soft); }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.post-list { display: grid; gap: 16px; margin-top: 24px; }
.post-list a { text-decoration: none; }
.post-list .card h3 { font-size: 28px; }
.post-list .card:hover { border-color: var(--gold); }
.note { border-left: 3px solid var(--gold); padding: 6px 0 6px 16px; margin: 24px 0; color: var(--ink); }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--ink-soft); text-decoration: none; }
.age { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--red); color: var(--red); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 12px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .hide-sm { display: none; }
  section { padding: 56px 0; }
  .lead { font-size: 18px; }
}
