/* ─── Tokens (alineados con el Deali Design System) ─────────── */
:root {
  --primary: #FE8729;
  --primary-dark: #E3741D;
  --ink-900: #1A1A1A;
  --ink-700: #3F3F46;
  --ink-500: #71717A;
  --ink-300: #D4D4D8;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-card: #F4F4F5;
  --footer-bg: #1A1A1A;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html {
  /* Smooth scroll para anchors del nav (Características, Precios, FAQs).
     scroll-padding-top compensa la altura del header sticky (64px). */
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ─── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  z-index: 50;
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 28px; width: auto;
  display: block;
}
.brand-footer img { height: 36px; }
.nav-main {
  display: flex; gap: 28px; align-items: center;
}
.nav-main a {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
  transition: color .15s;
}
.nav-main a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .login {
  font-size: 14px; font-weight: 500; color: var(--ink-700);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  transition: transform .1s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-dark {
  background: var(--ink-900); color: white;
}
.btn-dark:hover { background: #000; }
.btn-outline {
  background: white; color: var(--ink-900);
  border: 1.5px solid var(--ink-300);
}
.btn-outline:hover { border-color: var(--ink-900); }
.btn-arrow::after {
  content: "→";
  margin-left: 8px;
  display: inline-block;
}

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 64px 0 80px;
  background: var(--bg-soft);
}
.hero .grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--primary); }
.hero p.lead {
  font-size: 18px; color: var(--ink-500); margin: 0 0 32px;
  max-width: 460px;
}
.hero-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Section base ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 12px;
}
.section h2 .accent { color: var(--primary); }
.section .lede {
  color: var(--ink-500);
  font-size: 17px;
  margin: 0 0 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ─── Benefits mosaic (Fideliza / Decide / Sabes) ─────────────── */
.benefits {
  background: var(--bg-soft);
}
.benefits .head { text-align: center; margin-bottom: 56px; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-height: 540px;
}
.benefit-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.benefit-card.big {
  grid-row: span 2;
}
.benefit-card .photo {
  flex: 1;
  background-size: cover; background-position: center;
  min-height: 180px;
}
.benefit-card .copy {
  padding: 24px 26px 28px;
}
.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 20px; font-weight: 700;
  letter-spacing: -.01em;
}
.benefit-card p {
  margin: 0; font-size: 14.5px; color: var(--ink-500);
}

/* ─── Steps (Tu programa listo) ───────────────────────────────── */
.steps {
  background: var(--bg);
}
.steps .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.steps-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps-list { list-style: none; padding: 0; margin: 0 0 32px; counter-reset: step; }
.steps-list li {
  display: grid; grid-template-columns: 32px 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--ink-300);
  counter-increment: step;
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(step);
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--primary); color: white;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps-list h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.steps-list p { margin: 0; font-size: 14.5px; color: var(--ink-500); }

/* ─── Two-up sections (Conoce / Atrae) ────────────────────────── */
.two-up { background: var(--bg-soft); }
.two-up + .two-up { background: var(--bg); }
.two-up .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.two-up.reverse .grid > .copy { order: 2; }
.two-up .photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.two-up .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 0 0 32px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; font-size: 16px; color: var(--ink-700);
}
.feature-list li::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--primary); color: white;
  font-size: 12px; font-weight: 700;
  flex: 0 0 22px;
}

/* ─── Testimonials ────────────────────────────────────────────── */
.testimonials { background: var(--bg-soft); }
.testimonials .head { text-align: center; margin-bottom: 56px; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.testimonial {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.testimonial .quote {
  font-size: 15.5px; color: var(--ink-700); line-height: 1.55;
  flex: 1; margin: 0 0 22px;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial .who .name { font-weight: 600; font-size: 14.5px; }
.testimonial .who .biz { font-size: 13px; color: var(--ink-500); }

/* ─── Pricing ─────────────────────────────────────────────────── */
.pricing { background: var(--bg); }
.pricing .head { text-align: center; margin-bottom: 56px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch;
}
.plan {
  background: white;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(254,135,41,.18);
  transform: translateY(-4px);
}
.plan .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.plan .name {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 14px;
}
.plan .price {
  font-size: 44px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1;
}
.plan .price-unit { font-size: 15px; color: var(--ink-500); margin-left: 4px; }
.plan ul {
  list-style: none; padding: 0; margin: 26px 0 0;
  flex: 1;
}
.plan ul li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 14.5px; color: var(--ink-700);
}
.plan ul li::before {
  content: "•";
  color: var(--primary); font-weight: 900;
  margin-right: 2px;
}

/* Texto/CTA bajo los planes — indica que la selección se hace al
   registrarse, en vez de tener un botón por card. */
.pricing-footnote {
  text-align: center;
  margin-top: 48px;
}
.pricing-footnote p {
  margin: 0 0 16px;
  color: var(--ink-500);
  font-size: 15px;
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq { background: var(--bg-soft); }
.faq .head { text-align: center; margin-bottom: 48px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-weight: 600; font-size: 15.5px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px; font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 24px 22px;
  color: var(--ink-500);
  font-size: 15px; line-height: 1.6;
}

/* ─── App showcase ────────────────────────────────────────────── */
.app-showcase {
  background: var(--bg);
}
.app-showcase .grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.app-showcase h2 { margin-bottom: 16px; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.store-btn {
  background: var(--ink-900); color: white;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px;
  transition: background .15s;
}
.store-btn:hover { background: #000; }
.store-btn .store-icon { width: 26px; height: 26px; flex: 0 0 26px; color: white; }
.store-btn .label-sm { font-size: 10px; opacity: .8; display: block; line-height: 1.2; }
.store-btn .label-lg { font-size: 16px; font-weight: 700; display: block; line-height: 1.15; letter-spacing: -.01em; }
.iphone-wrap { display: flex; justify-content: center; }
/* Mockup iPhone CSS-only — más limpio y consistente que layerear un PNG
   parcial. Bezel negro + dynamic island simulada con ::before.
   Aspect ratio 9/19.5 = iPhone 15+/16+/17+ proportions. */
.iphone-mockup {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  background: #1A1A1A;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 4px 12px rgba(0,0,0,.10),
    0 24px 60px rgba(0,0,0,.18),
    inset 0 0 0 2px rgba(255,255,255,.04);
}
/* Dynamic Island — pill negra centrada arriba */
.iphone-mockup::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.iphone-screen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
}

/* ─── Final CTA ───────────────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 96px 0;
  background: var(--bg-soft);
}
.cta-final h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 16px;
}
.cta-final h2 .accent { color: var(--primary); }
.cta-final p {
  color: var(--ink-500); font-size: 17px;
  max-width: 640px; margin: 0 auto 32px;
}
.cta-final .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg); color: white;
  padding: 56px 0 32px;
}
.site-footer .brand { color: white; font-size: 28px; }
.site-footer .brand span { color: var(--primary); }
.footer-grid {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px;
  align-items: center;
}
.footer-nav {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
}
.footer-nav a { font-size: 14px; opacity: .85; }
.footer-nav a:hover { opacity: 1; color: var(--primary); }
.footer-social { display: flex; gap: 14px; justify-content: flex-end; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; opacity: .8;
}
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ─── Legal pages (privacy / terms) ───────────────────────────── */
.legal-page {
  max-width: 820px; margin: 0 auto;
  padding: 64px 24px 96px;
  font-size: 15.5px; line-height: 1.7; color: var(--ink-700);
}
.legal-page h1 {
  font-size: 36px; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 24px; color: var(--ink-900);
}
.legal-page h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -.015em;
  margin: 40px 0 16px; color: var(--ink-900);
}
.legal-page h3 {
  font-size: 18px; font-weight: 600;
  margin: 28px 0 12px; color: var(--ink-900);
}
.legal-page p { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { margin: 0 0 16px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink-900); }
.legal-page hr {
  border: none; border-top: 1px solid var(--ink-300); margin: 32px 0;
}
.legal-page a { color: var(--primary); text-decoration: underline; }

/* ─── Support form (página /support) ──────────────────────────── */
.support-page p { margin-bottom: 32px; }
.support-form {
  display: flex; flex-direction: column; gap: 22px;
  margin-top: 8px;
}
.support-form .field { display: flex; flex-direction: column; gap: 8px; }
.support-form label {
  font-size: 14.5px; font-weight: 600; color: var(--ink-900);
}
.support-form input[type="email"],
.support-form input[type="text"],
.support-form select,
.support-form textarea {
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink-900);
  background: white;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.support-form textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
.support-form select { appearance: none; -webkit-appearance: none; background-image:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2371717A' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
  padding-right: 44px; cursor: pointer;
}
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(254,135,41,.15);
}
.support-form input::placeholder,
.support-form textarea::placeholder { color: var(--ink-500); }
.support-form .field-hint {
  font-size: 13px; color: var(--ink-500); text-align: right;
}
/* Honeypot — fuera de pantalla pero accesible a bots que llenan todo. */
.support-form .hp-field {
  position: absolute; left: -10000px; width: 1px; height: 1px;
  overflow: hidden;
}
.support-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 4px;
}
.support-form button[disabled] { opacity: .6; cursor: not-allowed; }
.form-status {
  font-size: 14.5px;
  min-height: 22px;
}
.form-status.loading { color: var(--ink-500); }
.form-status.success { color: #15803D; }
.form-status.error { color: #B91C1C; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 880px) {
  .nav-main { display: none; }
  .nav-cta .login { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .hero .grid,
  .steps .grid,
  .two-up .grid,
  .app-showcase .grid { grid-template-columns: 1fr; gap: 40px; }
  .two-up.reverse .grid > .copy { order: 0; }
  .hero-photo, .steps-photo, .two-up .photo { aspect-ratio: 4/3; }
  .benefits-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }
  .benefit-card.big { grid-row: auto; }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .plan.featured { transform: none; }
  .footer-grid {
    grid-template-columns: 1fr; gap: 24px; text-align: center;
  }
  .footer-social { justify-content: center; }
}
