/* CromaSET — web pública · tokens del design handoff de la app */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Variable.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #0d1117;
  --bg-elev: #0f151d;
  --surface: #161c26;
  --surface-alt: #111720;
  --surface-legal: #121a17;
  --line: #232c3b;
  --line-strong: #2a3444;
  --line-header: #1b2331;
  --line-hover: #3a465a;
  --text: #eef2f7;
  --text-soft: #c7d4c9;
  --muted: #8b97a8;
  --muted-2: #55617a;
  --muted-3: #4c576b;
  --chroma: #3ddc84;
  --chroma-hover: #57e896;
  --chroma-deep: #22b56a;
  --on-chroma: #07130d;
  --amber: #ffc94d;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --radius-btn: 13px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--chroma); text-decoration: none; }
a:hover { color: var(--chroma-hover); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

/* ---------- tipografía ---------- */
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.4px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; }
.accent { color: var(--chroma); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--chroma);
  margin-bottom: 1em;
}
.eyebrow-neutral { color: var(--muted); }

.lead, .section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40em;
  margin-bottom: 1.6em;
}

/* ---------- botones ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85em 1.5em;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--chroma); color: var(--on-chroma); }
.btn-primary:hover { background: var(--chroma-hover); color: var(--on-chroma); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--chroma); color: var(--chroma); }
.btn-sm { padding: 0.55em 1.1em; min-height: 40px; font-size: 0.92rem; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-header);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-gem {
  width: 12px;
  height: 12px;
  background: var(--chroma);
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
}
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -0.3px; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.site-nav a:hover { color: var(--text); }
.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-badges li::before { content: '✓ '; color: var(--chroma); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(ellipse at center, rgba(61, 220, 132, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.phone {
  width: min(340px, 80vw);
  position: relative;
  border-radius: 42px;
}
.phone-md { width: min(310px, 78vw); }

/* ---------- strip de plataformas ---------- */
.platform-strip {
  border-top: 1px solid var(--line-header);
  border-bottom: 1px solid var(--line-header);
  background: var(--bg-elev);
  padding: 1.4rem 0;
}
.strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted-2);
  margin-bottom: 0.9rem;
  text-align: center;
}
.strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.8rem;
  list-style: none;
}
.strip-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
.p-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--p, var(--surface));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--line-header); border-bottom: 1px solid var(--line-header); }

/* ---------- flujo multidivisa ---------- */
.flow-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(150deg, rgba(61, 220, 132, 0.1), rgba(61, 220, 132, 0.02));
  border: 1px solid rgba(61, 220, 132, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  margin: 2.2rem 0 3rem;
}
.flow-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 0.35em;
}
.flow-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 0.25em; }
.flow-sub { font-size: 0.82rem; color: var(--muted-2); }
.flow-sub strong { color: var(--chroma); }
.flow-arrow { color: var(--chroma); font-size: 1.4rem; font-weight: 800; }

.feature-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.feature-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.feature-block img { width: min(250px, 70vw); border-radius: 28px; margin: 0 auto; }
.feature-block h3 { margin-bottom: 0.4em; }
.feature-block p { color: var(--muted); font-size: 0.97rem; }

/* ---------- pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.15);
  color: var(--chroma);
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.5em; }
.step-card p { color: var(--muted); font-size: 0.97rem; }
.steps-note {
  margin-top: 1.6rem;
  color: var(--muted-2);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- plataformas detalle ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.platform-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 0.15s;
}
.platform-card:hover { border-color: var(--line-hover); }
.platform-card header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.3rem; }
.platform-card h3 { font-size: 1.02rem; }
.p-entity {
  font-size: 0.78rem;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 0.7em;
}
.platform-card > p:last-child { color: var(--muted); font-size: 0.92rem; }

/* ---------- laboral y legal ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.legal-grid .platform-card h3 { margin-bottom: 0.5em; }

/* ---------- asesor ---------- */
.asesor-grid, .discreto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.discreto-grid { grid-template-columns: 0.8fr 1.2fr; }
.asesor-copy > p, .discreto-copy > p { color: var(--muted); margin-bottom: 1.2em; max-width: 38em; }
.asesor-copy strong, .discreto-copy strong { color: var(--text); }

.check-list { list-style: none; margin: 0 0 1.6rem; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.8rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--chroma);
  font-weight: 800;
}
.check-list-neutral li { color: var(--muted); }
.check-list-neutral li strong { color: var(--text); }

.verifactu-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-legal);
  border: 1px solid rgba(61, 220, 132, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.vf-text { min-width: 0; }
.vf-qr {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, var(--chroma) 0 3px, transparent 3px 6px),
    repeating-linear-gradient(90deg, var(--chroma) 0 3px, var(--surface-legal) 3px 6px);
  opacity: 0.75;
}
.asesor-visual, .discreto-visual { display: flex; justify-content: center; }

/* ---------- precios ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; align-items: start; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
}
.price-card-featured {
  border-color: var(--chroma);
  background: linear-gradient(150deg, rgba(61, 220, 132, 0.09), var(--surface) 55%);
}
.price-flag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--chroma);
  margin-bottom: 0.8rem;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 0.2rem; }
.price span { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-tag { color: var(--muted-2); font-size: 0.88rem; font-weight: 700; margin-bottom: 1.2rem; }
.price-card ul { list-style: none; }
.price-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--chroma); font-weight: 800; }
.price-card li em { color: var(--muted-2); font-style: normal; font-size: 0.85em; }
.pricing-note { margin-top: 1.8rem; text-align: center; color: var(--muted-2); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.3rem;
  transition: border-color 0.15s;
}
.faq-list details:hover { border-color: var(--line-hover); }
.faq-list details[open] { border-color: rgba(61, 220, 132, 0.4); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 1.8rem 1.1rem 0;
  list-style: none;
  position: relative;
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--chroma);
  font-size: 1.3rem;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { color: var(--muted); padding: 0 0 1.2rem; font-size: 0.97rem; }
.faq-disclaimer { margin-top: 1.6rem; color: var(--muted-3); font-size: 0.85rem; }

/* ---------- lista de espera ---------- */
.section-cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(61, 220, 132, 0.08), transparent),
    var(--bg-elev);
  border-top: 1px solid var(--line-header);
}
.waitlist-form {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row label, .form-row legend {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.opt { color: var(--muted-2); font-weight: 400; font-size: 0.85em; }
.req { color: var(--chroma); }
.form-row input[type="text"],
.form-row input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75em 1em;
  min-height: 48px;
}
.form-row input:focus { outline: none; border-color: var(--chroma); }
fieldset.form-row { border: 0; }
.platform-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.platform-checks label { display: inline-flex; margin: 0; cursor: pointer; }
.platform-checks input { position: absolute; opacity: 0; pointer-events: none; }
.platform-checks span {
  display: inline-flex;
  align-items: center;
  padding: 0.45em 1em;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.platform-checks input:checked + span {
  background: rgba(61, 220, 132, 0.09);
  border-color: var(--chroma);
  color: var(--chroma);
}
.platform-checks input:focus-visible + span { outline: 2px solid var(--chroma); outline-offset: 2px; }
.form-consent label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input { margin-top: 0.25em; accent-color: var(--chroma); width: 16px; height: 16px; flex-shrink: 0; }
.form-status { font-size: 0.92rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--chroma); }
.form-status.err { color: var(--amber); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-header);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.footer-arch { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 1.2rem; }
.footer-arch a { color: var(--muted); }
.footer-arch a:hover { color: var(--chroma); }
.footer-links { display: flex; justify-content: center; gap: 1.6rem; margin-bottom: 1.2rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-note { color: var(--muted-3); font-size: 0.82rem; max-width: 46em; margin: 0 auto 0.8rem; }
.footer-copy { color: var(--muted-3); font-size: 0.82rem; }

/* ---------- páginas legales ---------- */
.legal-page { padding: 3rem 0 4rem; }
.legal-page h1 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.legal-page h2 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.8em; }
.legal-page ul { padding-left: 1.4rem; }
.legal-pending {
  background: rgba(255, 201, 77, 0.09);
  border: 1px solid rgba(255, 201, 77, 0.32);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--amber) !important;
  font-size: 0.9rem !important;
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .asesor-grid, .discreto-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-grid > *, .asesor-grid > *, .discreto-grid > * { min-width: 0; }
  .discreto-visual { order: 2; }
  .feature-duo, .steps, .platform-grid, .pricing-grid, .legal-grid { grid-template-columns: 1fr; }
  .flow-card { grid-template-columns: 1fr; text-align: center; padding: 1.4rem; }
  .flow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line-header);
    padding: 0.6rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 20px; min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }
}
