/* =====================================================
   DELIA LANDING: Design System
   Mismos tokens que delia-next (src/app/globals.css),
   "Deep Space Intelligence": navy + lima usado con moderación.
   ===================================================== */
:root {
  --bg:            #070B14;
  --surface:       #0D1422;
  --surface-2:     #131D2E;
  --surface-3:     #1A2438;

  --border:        rgba(148,163,184,0.08);
  --border-med:    rgba(148,163,184,0.13);
  --border-strong: rgba(148,163,184,0.22);

  --text:          #E2E8F0;
  --text-2:        #8995A8;
  --muted:         #4A5568;

  --lime:          #A2FF38;
  --lime-dim:      rgba(162,255,56,0.10);
  --lime-glow:     rgba(162,255,56,0.20);
  --on-lime:       #070B14;

  --green:         #009D71;
  --green-s:       #4ADE80;

  --font-heading:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius:        0.5rem;
  --radius-lg:     1rem;

  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem;  --space-8: 2rem;    --space-12: 3rem;
  --space-16: 4rem;   --space-24: 6rem;

  --container: 1180px;
}

/* Modo claro: mismos overrides que delia-next (globals.css). El lima es
   ilegible sobre blanco, así que ahí el acento pasa a violeta, igual que
   en la app real. */
[data-theme="light"] {
  --bg:            #F8FAFC;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5F9;
  --surface-3:     #E2E8F0;

  --border:        rgba(15,23,42,0.08);
  --border-med:    rgba(15,23,42,0.13);
  --border-strong: rgba(15,23,42,0.22);

  --text:          #0F172A;
  --text-2:        #334155;
  --muted:         #94A3B8;

  --lime:          #5B21B6;
  --lime-dim:      rgba(91,33,182,0.08);
  --lime-glow:     rgba(91,33,182,0.15);
  --on-lime:       #FFFFFF;

  --green:         #009D71;
  --green-s:       #009D71;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-24) 0; }

/* ── Foco visible: desde el origen, no retrofit ─────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 100;
  background: var(--lime);
  color: var(--on-lime);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ── Reduced motion: desde el origen ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand-dot { color: var(--lime); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ── SELECTOR DE TEMA (Sistema/Claro/Oscuro) ────────────────
   Mismo patrón que delia-next: pill de 3 botones ícono. ──── */
.theme-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.6rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-btn.on {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero { position: relative; padding: var(--space-24) 0; overflow: hidden; }
.hero-canvas {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 30% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 30% 20%, #000 0%, transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.btn-primary {
  display: inline-block;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--font-body);
  font-weight: 700;
  padding: var(--space-4) var(--space-8);
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--lime-glow); }
.hero-proof {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
}
.hero-proof-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
  flex-shrink: 0;
}
.hero-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-med);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.fade-in-delay-1 { transition-delay: 0.15s; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { max-width: 640px; margin-bottom: var(--space-16); }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-top: var(--space-3);
}
.section-title {
  max-width: 32ch;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-16);
}
.section-title--center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--surface); }

/* ── ANTES / DESPUÉS ──────────────────────────────────────── */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-12);
}
.compare-col { display: flex; flex-direction: column; }
.compare-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: var(--space-6);
}
.compare-after .compare-label { color: var(--lime); }
.compare-item {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}
.compare-item:first-of-type { border-top-color: var(--border-strong); }
.compare-before .compare-item h3 { color: var(--text-2); }
.compare-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.compare-after .compare-item h3::before {
  content: '✓';
  color: var(--lime);
  margin-right: var(--space-2);
  font-weight: 700;
}
.compare-item p { color: var(--text-2); font-size: 0.95rem; }
.compare-divider {
  width: 1px;
  background: linear-gradient(var(--border), var(--border-strong), var(--border));
}

@media (max-width: 780px) {
  .compare { grid-template-columns: 1fr; gap: var(--space-8); }
  .compare-divider { display: none; }
}

/* ── FEATURES EN PROFUNDIDAD ─────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
}
.feature-row-reverse .feature-copy { order: 2; }
.feature-copy h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.feature-copy p { color: var(--text-2); font-size: 1.05rem; max-width: 42ch; }
.feature-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-med);
}
.feature-media--phone img {
  max-width: 320px;
  margin: 0 auto;
}
.feature-list-intro {
  margin: var(--space-16) 0 var(--space-4);
  color: var(--text-2);
  font-size: 0.95rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.feature-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-med);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
}

@media (max-width: 860px) {
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; }
  .feature-row-reverse .feature-copy { order: 0; }
}

/* ── PARA QUIÉN ES ───────────────────────────────────────── */
.container-narrow { max-width: 820px; }
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.fit-yes, .fit-no {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-med);
}
.fit-yes { background: var(--lime-dim); border-color: rgba(162,255,56,0.25); }
.fit-no { background: var(--surface); }
.fit-yes h3 { color: var(--lime); }
.fit-no h3 { color: var(--text-2); }
.fit-yes h3, .fit-no h3 { font-size: 1.1rem; margin-bottom: var(--space-4); }
.fit-yes ul, .fit-no ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.fit-yes li, .fit-no li { color: var(--text-2); font-size: 0.95rem; padding-left: 1.4rem; position: relative; }
.fit-yes li::before { content: '✓'; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.fit-no li::before { content: '·'; position: absolute; left: 0.3rem; color: var(--muted); font-weight: 700; }

@media (max-width: 720px) {
  .fit-grid { grid-template-columns: 1fr; }
}

/* ── PRECIOS ──────────────────────────────────────────────── */
.segment-toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
}
.segment-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-med);
  border-radius: 999px;
  padding: var(--space-2) var(--space-6);
  cursor: pointer;
  transition: all 0.15s ease;
}
.segment-btn.on {
  background: var(--lime);
  color: var(--on-lime);
  border-color: var(--lime);
}
.pricing-panel--hidden { display: none; }
.pricing-note {
  text-align: center;
  color: var(--text-2);
  font-size: 0.9rem;
  margin-top: var(--space-8);
}
.pricing-note a { color: var(--lime); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.pricing-grid--particulares {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}
.price-card-featured {
  background: var(--surface-2);
  border-color: var(--lime);
  transform: scale(1.03);
}
.price-badge {
  position: absolute; top: -0.75rem; left: var(--space-6);
  background: var(--lime); color: var(--on-lime);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; color: var(--text); }
.price-scope { color: var(--text-2); font-size: 0.9rem; margin-top: var(--space-2); }
.price-tier {
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.price-tier:first-of-type { border-top: none; margin-top: var(--space-6); padding-top: 0; }
.price-tier-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.price-tier--opt .price-tier-label { color: var(--lime); }
.price-amount {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; color: var(--text);
  margin: var(--space-2) 0 0;
}
.price-period { font-size: 0.85rem; font-weight: 400; color: var(--text-2); }
.price-annual { color: var(--text-2); font-size: 0.8rem; margin-top: 0.15rem; }
.price-card ul { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.price-card li { color: var(--text-2); font-size: 0.9rem; padding-left: 1.2rem; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green-s); }
.price-feature--opt { color: var(--text); }
.price-feature--opt::before { content: '+'; color: var(--lime); font-weight: 700; }

@media (max-width: 860px) {
  .pricing-grid, .pricing-grid--particulares { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
}

/* ── FORMULARIO ───────────────────────────────────────────── */
.waitlist-proof {
  max-width: 640px;
  margin: 0 auto var(--space-8);
  text-align: center;
  color: var(--text-2);
  font-size: 1rem;
}
.waitlist-form {
  background: var(--surface);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-size: 0.85rem; color: var(--text-2); }
.form-field input, .form-field select {
  background: var(--surface-2);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-field input::placeholder { color: var(--muted); }
.btn-full { width: 100%; text-align: center; border: none; }
.form-status { min-height: 1.2em; font-size: 0.9rem; text-align: center; }
.form-status--ok { color: var(--green-s); }
.form-status--error { color: #F87171; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─ FOOTER ────────────────────────────────────────────────────── */
.footer { padding: var(--space-12) 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-6); }
.footer p { color: var(--text-2); font-size: 0.9rem; }
.footer a { color: var(--lime); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-legal { color: var(--text-2); font-size: 0.8rem; width: 100%; }
.footer-nav { display: flex; gap: var(--space-6); }
.footer-nav a { color: var(--text-2); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--lime); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─ DETALLE DE PLANES (/detalle-planes) ──────────────────────── */
.detalle-hero { padding-bottom: var(--space-8); }
.back-link {
  display: inline-block;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: var(--space-8);
}
.back-link:hover { color: var(--lime); }
.detalle-sub { color: var(--text-2); font-size: 1.05rem; max-width: 65ch; margin-top: var(--space-4); }
.detalle-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
}
.detalle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.detalle-table th, .detalle-table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.detalle-table th:first-child, .detalle-table td:first-child { white-space: normal; }
.detalle-table thead th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.detalle-table tbody tr:last-child td { border-bottom: none; }
.detalle-table tbody tr:hover { background: var(--surface); }
.detalle-yes { color: var(--green-s); font-weight: 700; }
.detalle-no { color: var(--muted); }
.detalle-note { color: var(--text-2); font-size: 0.9rem; margin-top: var(--space-6); }
.detalle-note a { color: var(--lime); }
a.btn-primary { margin-top: var(--space-8); display: inline-block; }
