:root {
  color-scheme: dark;
  --bg: #0a1214;
  --bg-2: #0e1a1d;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8f0ef;
  --muted: #94aaa8;
  --accent: #14b8a6;
  --accent-2: #0f766e;
  --radius: 16px;
  --font: -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Idioma: html[lang] decide qué variante se ve */
html[lang="es"] [data-l="en"], html[lang="en"] [data-l="es"] { display: none !important; }
/* Pro: se oculta hasta que exista */
html[data-pro="off"] .pro-only { display: none !important; }
html:not([data-pro="off"]) .pro-off-only { display: none !important; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 18, 20, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: 4px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent-2); color: #fff; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 15px;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* Hero */
.hero { padding: 72px 0 48px; background: radial-gradient(900px 400px at 15% 0%, rgba(20, 184, 166, 0.22), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; background: var(--surface);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; margin: 18px 0; letter-spacing: -0.02em; }
.grad { background: linear-gradient(135deg, #5eead4, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* Demo interactiva */
.demo-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.demo { --px: 8px; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #14262a; font-weight: 600; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #6a8caf, #a3c4bc); flex: none; }
.demo-msgs { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.m { max-width: 82%; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.m.in { background: #1c2f33; align-self: flex-start; }
.m.out { background: #0b5d56; align-self: flex-end; }
.m small { display: block; opacity: 0.6; font-size: 11px; margin-top: 2px; text-align: right; }
.demo .hide, .demo-bar { transition: filter 0.15s ease 0.2s; }
.demo .hide, .demo-bar.hide { filter: blur(var(--px)); }
.demo .hide:hover { filter: none; }
.demo[data-last="off"] .last { filter: blur(var(--px)); }
.demo[data-last="off"] .last:hover { filter: none; }
.demo.peek .hide, .demo.peek .last, .demo.peek .demo-bar { filter: none; transition-delay: 0s; }
.demo-compose { padding: 10px 16px 14px; }
.demo-compose div { background: #1c2f33; border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: 14px; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.demo-controls label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.demo-controls input { accent-color: var(--accent); }
.demo-hint { padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); }
kbd { font: 600 12px var(--font); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); color: var(--text); }

/* Secciones */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 62ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { font-size: 22px; margin-bottom: 10px; }
.tag { font-size: 10px; font-weight: 700; color: #fff; background: var(--accent-2); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 700; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--border); }
.shots figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 760px; }
.price-grid .card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.price-grid .card li { margin: 4px 0; }
.price-grid .big { font-size: 28px; font-weight: 700; margin: 4px 0; }

details { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; background: var(--surface); margin-bottom: 10px; max-width: 820px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal */
.legal { padding: 48px 0 64px; max-width: 760px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 20px; margin: 30px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.disclaimer { flex-basis: 100%; font-size: 12.5px; margin: 0; }

.hero .wrap > * { min-width: 0; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav .wrap { gap: 10px; }
  .lang { margin-left: auto; }
  .hero { padding: 40px 0 32px; }
  .cta-row .btn { flex: 1 1 100%; }
  section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo .hide { transition: none; }
}
