/* ============ Tokens ============ */
/*
 * Blanco y negro, con el índigo de la app como único accent — reservado a
 * propósito para CTAs, links y estados seleccionados, nada más. El rojo del
 * "fibrón" en la ilustración del antes/después es un detalle narrativo de esa
 * pieza puntual, no un color de marca ni un segundo accent del sitio.
 */
:root {
  --brand-50: #eeecfa;
  --brand-100: #ded9f5;
  --brand-200: #bcb3ea;
  --brand-300: #998cdd;
  --brand-400: #7c6bd4;
  --brand-500: #6b5cd9;
  --brand-600: #4a3aa8;
  --brand-700: #392c80;
  --brand-900: #211a4a;

  --marker-500: #d9432b;

  --ink: #0d0d10;
  --ink-soft: #2c2c33;
  --paper: #ffffff;
  --paper-alt: #f4f4f6;
  --card: #ffffff;
  --border: #e2e2e6;
  --muted: #5c5c66;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shadow-card: 0 12px 30px -14px rgba(13, 13, 16, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;

  /* Fijos (no se invierten con el tema): el footer y el CTA final son
     bloques negros a propósito en las dos versiones del sitio. */
  --dark-bg: #0d0d10;
  --dark-text: #f4f4f6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f7f7f8;
    --ink-soft: #d3d3d9;
    --paper: #0d0d10;
    --paper-alt: #18181c;
    --card: #191920;
    --border: #2d2d35;
    --muted: #9a9aa4;
    --brand-500: #8b78d6;
    --brand-600: #a396e0;
    --shadow-card: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --ink: #f7f7f8;
  --ink-soft: #d3d3d9;
  --paper: #0d0d10;
  --paper-alt: #18181c;
  --card: #191920;
  --border: #2d2d35;
  --muted: #9a9aa4;
  --brand-500: #8b78d6;
  --brand-600: #a396e0;
  --shadow-card: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

/* ============ Reset-ish ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 100px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-primary {
  background: var(--brand-600);
  color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(74, 58, 168, 0.5);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-600); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: .92rem;
  font-weight: 600;
}
.main-nav a { text-decoration: none; color: var(--muted); }
.main-nav a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* ============ Eyebrow / titles ============ */
.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.eyebrow-center { text-align: center; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-title.center { text-align: center; }
.section-lede {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 640px;
}
.section-lede.center { margin: 0 auto; text-align: center; }

/* ============ Hero ============ */
.hero { padding: 64px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--brand-600);
}
.hero-lede {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46ch;
}
.free-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-fineprint {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.phone-card {
  margin: 0;
  width: 44%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform: rotate(-4deg);
}
.phone-after { transform: rotate(4deg); }
.phone-card figcaption {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
  background: var(--card);
  color: var(--muted);
}
.phone-before figcaption { color: var(--marker-500); }
.phone-after figcaption { color: var(--brand-600); }
.phone-svg { width: 100%; height: auto; display: block; }
.hero-arrow {
  color: var(--muted);
  flex-shrink: 0;
  opacity: .6;
}
@media (max-width: 560px) {
  .hero-art { flex-direction: column; }
  .phone-card, .phone-after { width: 72%; transform: none; }
  .hero-arrow { transform: rotate(90deg); }
}

/* ============ Trust strip ============ */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper-alt);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  font-size: .86rem;
  color: var(--muted);
  font-weight: 600;
}
.trust-item { color: var(--ink-soft); }

/* ============ Sections ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); }
.only-desktop { display: inline; }
@media (max-width: 640px) { .only-desktop { display: none; } }

/* ============ Problem cards ============ */
.problem-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.problem-icon { font-size: 1.8rem; margin-bottom: 12px; }
.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.problem-card p { color: var(--muted); font-size: .93rem; line-height: 1.55; }

/* ============ Steps ============ */
.steps {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; text-align: left; }
.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 16px;
}
.step-num {
  position: absolute;
  top: -6px;
  left: 42px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: .74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-body);
  margin-bottom: 8px;
}
.step p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ============ Features ============ */
.features-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 6px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
:root[data-theme="dark"] .feature-icon { background: var(--paper-alt); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .feature-icon { background: var(--paper-alt); }
}
.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  margin-bottom: 6px;
}
.feature p { color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* ============ Rubros ============ */
.rubros-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .rubros-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .rubros-grid { grid-template-columns: repeat(2, 1fr); } }
.rubro-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
}
.rubro-emoji { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.rubro-card h3 {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
}

/* ============ CTA final ============ */
/* Único momento del sitio donde el negro y el índigo conviven en la misma
   pieza a pantalla completa: el botón es el "pop" de accent que cierra la
   página, sobre un fondo negro fijo. */
.cta-final {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.cta-final-inner { text-align: center; }
.cta-final h2 {
  color: var(--dark-text);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 16px;
}
.cta-final p:first-of-type {
  color: rgba(244,244,246,.78);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.cta-final .btn-primary {
  background: var(--brand-500);
  color: var(--dark-text);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5);
}
.cta-final .btn-primary:hover { background: var(--brand-400); }
.cta-final .hero-fineprint { color: rgba(244,244,246,.65); margin-top: 16px; }

/* ============ Footer ============ */
.site-footer {
  background: var(--dark-bg);
  color: rgba(244,244,246,.82);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 52px 24px 32px;
}
.footer-brand p {
  margin-top: 10px;
  color: rgba(244,244,246,.6);
  font-size: .88rem;
  max-width: 32ch;
  line-height: 1.55;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-content: flex-start;
}
.footer-nav a {
  text-decoration: none;
  font-size: .9rem;
  color: rgba(244,244,246,.85);
  font-weight: 600;
}
.footer-nav a:hover { color: var(--dark-text); }
.footer-bottom {
  border-top: 1px solid rgba(244,244,246,.12);
  padding: 18px 24px 28px;
  font-size: .8rem;
  color: rgba(244,244,246,.5);
}

/* ============ Botón flotante de WhatsApp ============ */
/*
 * El verde de WhatsApp queda fuera del sistema de la marca a propósito: es
 * la única vez que se rompe la paleta, porque ese verde es lo que hace que
 * el ícono se reconozca al instante — vale más la claridad que la pureza
 * de la paleta acá.
 */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.45);
}
@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
