/* Babilom public site (F8.1). Brand: deep burgundy, gold, spaced serif
   capitals (docs/brand-babilom-referencia.png). No external fonts: the CSP
   allows only 'self'. */
:root {
  --bg: #24070f;
  --bg-2: #330b17;
  --bg-3: #42101e;
  --text: #f6ebdc;
  --muted: #d1b9a6;
  --gold: #e2b06e;
  --gold-2: #c8894a;
  --line: rgba(226, 176, 110, 0.28);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #5a1426 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
a { color: var(--gold); }
a:hover { color: #f3c98c; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; z-index: 10; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--gold); }
h3 { font-size: 1.35rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(36, 7, 15, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.wordmark {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.42em; text-decoration: none;
  background: linear-gradient(180deg, #f8d9a4, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark.small { font-size: 1.2rem; margin: 0 0 4px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--gold); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.langs a { display: inline-block; padding: 4px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
.langs a[aria-current] { color: var(--bg); background: var(--gold); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent; }
.btn-gold { background: linear-gradient(180deg, #f0c483, var(--gold-2)); color: #2a0811; box-shadow: 0 6px 24px rgba(226, 150, 80, 0.25); }
.btn-gold:hover { color: #2a0811; filter: brightness(1.06); }
.btn-ghost { color: var(--text); border-color: var(--line); padding: 8px 16px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.actions .btn-ghost { padding: 12px 22px; }

/* Hero */
.hero { padding: clamp(56px, 10vw, 120px) 0 64px; text-align: center; }
.hero .lead { max-width: 720px; margin-inline: auto; }
.eyebrow { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.32em; color: var(--gold); font-size: 0.9rem; margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 12px; }
.note { font-size: 0.9rem; }

/* Sections */
.section { padding: 64px 0; }
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.cta { text-align: center; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { color: var(--gold); }
.card p { margin: 0; color: var(--muted); }
.card .badge { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); background: var(--gold); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.steps { margin: 0; padding: 20px 20px 20px 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-3); }
.steps li { margin: 6px 0; }
.steps li:last-child { color: var(--gold); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.numbered li { margin: 8px 0; }

/* Pricing */
.plans { margin: 32px 0; }
.plan h2 { margin-bottom: 4px; }
.card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--text); margin: 16px 0; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 40px; }
.foot-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { margin: 0 0 6px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.small-print { font-size: 0.85rem; margin-top: 24px; }

@media (max-width: 720px) {
  .nav { order: 3; width: 100%; justify-content: center; padding-bottom: 10px; }
  .top-actions { margin-left: auto; }
  .wordmark { font-size: 1.2rem; letter-spacing: 0.32em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
