/* PageVo — landing + páginas legales. Paleta del design system de la app. */
:root {
  --bg: #141221;
  --page-bg: #0B0A13;
  --surface: #1D1B2E;
  --surface-2: #25233A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #F1EFE8;
  --text-secondary: #8B87A6;
  --text-muted: #605C7A;
  --purple-100: #CECBF6;
  --purple-500: #7F77DD;
  --purple-900: #26215C;
  --coral-100: #F5C4B3;
  --coral-500: #D85A30;
  --teal-500: #1D9E75;
  --amber-500: #EF9F27;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--purple-100); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ---------- Load fade-in (auto, sin depender de JS externo) ---------- */
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.js body { animation: pageIn 0.6s var(--ease) both; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .stagger.in-view > * { opacity: 1; transform: none; }
.js .stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.js .stagger.in-view > *:nth-child(2) { transition-delay: 0.09s; }
.js .stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.js .stagger.in-view > *:nth-child(4) { transition-delay: 0.23s; }
.js .stagger.in-view > *:nth-child(5) { transition-delay: 0.30s; }
.js .stagger.in-view > *:nth-child(6) { transition-delay: 0.37s; }

@media (prefers-reduced-motion: reduce) {
  html.js body { animation: none; }
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero::before, .hero::after { animation: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 10, 19, 0.7);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11, 10, 19, 0.85); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text-primary); }
.brand img { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
.lang-toggle {
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-secondary);
  border-radius: 999px; padding: 5px 13px; font-size: 13px; cursor: pointer; font-weight: 600; transition: all 0.2s;
}
.lang-toggle:hover { color: var(--text-primary); border-color: var(--purple-500); }
@media (max-width: 680px) { .nav .nav-link { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 108px 0 76px; }
.hero::before {
  content: ""; position: absolute; top: -46%; left: 50%; width: 900px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(127, 119, 221, 0.32), transparent 70%);
  pointer-events: none; animation: auroraA 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; top: -20%; left: 20%; width: 520px; height: 520px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(216, 90, 48, 0.16), transparent 70%);
  pointer-events: none; animation: auroraB 18s ease-in-out infinite alternate;
}
@keyframes auroraA { from { transform: translateX(-54%) translateY(0) scale(1); } to { transform: translateX(-46%) translateY(24px) scale(1.08); } }
@keyframes auroraB { from { transform: translate(0, 0) scale(1); opacity: 0.8; } to { transform: translate(80px, 30px) scale(1.15); opacity: 1; } }
.hero .container { position: relative; text-align: center; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--purple-100); background: rgba(127, 119, 221, 0.14);
  border: 1px solid rgba(127, 119, 221, 0.3); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.2); }
.hero h1 { font-size: clamp(36px, 6.2vw, 62px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -0.025em; font-weight: 750; }
.hero h1 .grad { background: linear-gradient(120deg, #C7ACF4, #9058FF 55%, #7F77DD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: clamp(16px, 2.4vw, 20px); color: var(--text-secondary); max-width: 640px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-md); padding: 13px 24px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s var(--ease), filter 0.2s, box-shadow 0.3s, border-color 0.2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--coral-500); color: #fff; box-shadow: 0 8px 24px rgba(216, 90, 48, 0.25); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 30px rgba(216, 90, 48, 0.35); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--purple-500); }
.badge-soon { color: var(--text-muted); font-size: 13px; margin-top: 20px; }

/* ---------- Privacy band ---------- */
.privacy-band { padding: 12px 0 8px; }
.privacy-band .inner {
  display: flex; align-items: center; gap: 14px; justify-content: center; text-align: left;
  background: linear-gradient(135deg, rgba(29, 158, 117, 0.12), rgba(127, 119, 221, 0.09));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 26px; flex-wrap: wrap;
}
.privacy-band .lock { color: var(--teal-500); flex-shrink: 0; }
.privacy-band .lock .icon { width: 26px; height: 26px; }
.privacy-band strong { color: var(--text-primary); }
.privacy-band span.txt { color: var(--text-secondary); max-width: 720px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section h2 { font-size: clamp(27px, 4vw, 37px); text-align: center; margin: 0 0 12px; letter-spacing: -0.015em; font-weight: 700; }
section .section-sub { text-align: center; color: var(--text-secondary); max-width: 620px; margin: 0 auto 46px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(127, 119, 221, 0.4); background: var(--surface-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.card .ic { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background: linear-gradient(140deg, rgba(127, 119, 221, 0.28), rgba(127, 119, 221, 0.1)); color: var(--purple-100); border: 1px solid rgba(127, 119, 221, 0.22); }
.card .ic .icon { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }

.pill-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 26px; }
.pill-list li { color: var(--text-secondary); display: flex; align-items: flex-start; gap: 11px; }
.pill-list li .chk { color: var(--teal-500); flex-shrink: 0; margin-top: 2px; }
.pill-list li .chk .icon { width: 20px; height: 20px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step { text-align: center; }
.step .num { position: relative; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); color: var(--purple-100); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step .num .icon { width: 26px; height: 26px; }
.step .num .badge { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--coral-500); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0 auto; color: var(--text-secondary); font-size: 14.5px; max-width: 280px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 720px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.plan.featured { border-color: var(--purple-500); box-shadow: 0 0 0 1px var(--purple-500) inset, 0 10px 40px rgba(127, 119, 221, 0.15); }
.plan h3 { margin: 6px 0 2px; font-size: 18px; }
.plan .price { font-size: 32px; font-weight: 750; margin: 6px 0 10px; }
.plan .price small { font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.plan p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }
.plan .tag { display: inline-block; color: var(--amber-500); background: rgba(239, 159, 39, 0.12); border: 1px solid rgba(239, 159, 39, 0.28); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; }

/* ---------- Legal / content pages ---------- */
.legal { padding: 72px 0 84px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; padding-top: 8px; }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { padding-left: 20px; }
.legal .lang-links { margin-bottom: 28px; font-size: 14px; }

/* ---------- FAQ (soporte) ---------- */
.faq-hero { padding: 64px 0 8px; text-align: center; }
.faq-hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 10px; letter-spacing: -0.015em; }
.faq-hero p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.faq-search { position: relative; max-width: 520px; margin: 26px auto 0; }
.faq-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.faq-search input { width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-primary); font-size: 15px; padding: 13px 18px 13px 46px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-search input::placeholder { color: var(--text-muted); }
.faq-search input:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.18); }

.faq-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 84px; }
.faq-group { margin-bottom: 34px; }
.faq-group-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin: 0 0 12px; padding-left: 4px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 10px; overflow: hidden; transition: border-color 0.25s; }
.faq-item.open { border-color: rgba(127, 119, 221, 0.4); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text-primary); font: inherit; font-weight: 600; font-size: 15.5px; padding: 18px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-q .chev { color: var(--text-muted); flex-shrink: 0; transition: transform 0.3s var(--ease), color 0.2s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--purple-100); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { margin: 0; padding: 0 20px 20px; color: var(--text-secondary); font-size: 14.5px; }
.faq-empty { text-align: center; color: var(--text-muted); padding: 30px 0; display: none; }
.faq-empty.show { display: block; }
mark { background: rgba(239, 159, 39, 0.3); color: var(--text-primary); border-radius: 3px; padding: 0 1px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s; }
.site-footer a:hover { color: var(--text-primary); }
.site-footer .copy { color: var(--text-muted); font-size: 13px; }
