:root {
  --bg: #FBF3F1;
  --surface: #FFFFFF;
  --border: #EBD9DB;
  --ink: #2B141A;
  --muted: #8A6670;
  --muted-strong: #4A3238;
  --accent: #6B1828;
  --accent-light: #9B2840;
  --accent-soft: #F3DFE2;
  --header-gradient: linear-gradient(135deg, #3A0A13, #6B1828, #9B2840);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-light); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-gradient);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header .brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.site-header .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.site-header nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}
.site-header nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}
.site-header nav a:hover { color: #fff; }

.hero {
  background: var(--header-gradient);
  color: #fff;
  padding: clamp(48px,8vw,96px) 28px;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 420px; min-width: 280px; }
.hero-copy.text-only { flex: none; max-width: 680px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(38px,5vw,58px);
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 460px;
  margin: 0 0 34px;
}
.hero-copy.text-only p.lead { margin-left: auto; margin-right: auto; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-copy.text-only .hero-ctas { justify-content: center; }

.btn-hero-primary,
.btn-hero-outline {
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-block;
}
.btn-hero-primary { background: #fff; color: var(--accent); }
.btn-hero-primary:hover { color: var(--accent); opacity: .92; }
.btn-hero-outline { border: 1.5px solid rgba(255,255,255,.5); color: #fff; font-weight: 600; }
.btn-hero-outline:hover { color: #fff; border-color: #fff; }

.hero-phone-wrap { flex: 1 1 280px; min-width: 240px; display: flex; justify-content: center; }
.hero-phone {
  width: 240px;
  background: #1C0710;
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.15);
}
.hero-phone-screen {
  width: 100%;
  aspect-ratio: 9/18.5;
  border-radius: 22px;
  overflow: hidden;
  background: #1C0710;
}
.hero-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

section { scroll-margin-top: 76px; }

.section-inner { max-width: 1160px; margin: 0 auto; }
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-heading h2, .pro-copy h2, .contact-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(28px,3.4vw,38px);
  margin: 0 0 14px;
  color: var(--ink);
}
.section-heading p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }

.how-section { background: var(--bg); padding: clamp(56px,8vw,96px) 28px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.how-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; }
.how-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800; font-size: 18px; color: var(--accent);
}
.how-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.how-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

.pro-section { background: var(--accent-soft); padding: clamp(56px,8vw,96px) 28px; }
.pro-inner { max-width: 1160px; margin: 0 auto; display: flex; gap: 56px; flex-wrap: wrap; align-items: center; }
.pro-copy { flex: 1 1 380px; min-width: 280px; }
.pro-copy p { color: var(--muted-strong); font-size: 16px; line-height: 1.6; margin: 0 0 28px; max-width: 440px; }
.btn-pro-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 14px; text-decoration: none;
}
.btn-pro-cta:hover { color: #fff; background: var(--accent-light); }

.pro-card { flex: 1 1 340px; min-width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.pro-price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 18px; }
.pro-price .amount { font-family: 'Playfair Display', Georgia, serif; font-size: 34px; font-weight: 800; color: var(--accent); }
.pro-price .period { color: var(--muted); font-size: 14px; }
.pro-features { list-style: none; margin: 0 0 20px; padding: 0; }
.pro-features li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; color: var(--ink); }
.pro-features li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.pro-finePrint { text-align: center; color: var(--muted); font-size: 12.5px; margin: 0; }

.download-section { background: var(--surface); padding: clamp(56px,8vw,96px) 28px; text-align: center; }
.download-inner { max-width: 720px; margin: 0 auto; }
.download-inner p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 36px; }
.download-badges { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.download-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 22px; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.download-badge:hover { border-color: var(--accent-light); transform: translateY(-1px); }
.download-badge-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.download-badge-text { text-align: left; }
.download-badge-store { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.download-badge-status { font-size: 12.5px; color: var(--accent); font-weight: 600; }

.contact-section { background: var(--bg); padding: clamp(56px,8vw,88px) 28px; text-align: center; }
.contact-inner { max-width: 560px; margin: 0 auto; }
.contact-section h2 { font-size: clamp(26px,3vw,32px); }
.contact-inner p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 18px; }
.contact-email {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 22px;
  color: var(--accent); text-decoration: none;
}

.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 26px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.site-footer .copyright { color: var(--muted); font-size: 13px; }
.site-footer .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .footer-links a { color: var(--muted); font-size: 13px; text-decoration: underline; }

.legal-main { max-width: 760px; margin: 0 auto; padding: 56px 28px 96px; }
.legal-main h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(28px,3.4vw,36px);
  margin: 0 0 8px;
  color: var(--ink);
}
.legal-updated { color: var(--muted); font-size: 13px; margin: 0 0 40px; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--ink);
}
.legal-section p { color: var(--muted-strong); font-size: 15px; line-height: 1.65; margin: 0 0 14px; }
.legal-section ul { margin: 0 0 14px; padding-left: 20px; }
.legal-section li { margin-bottom: 6px; font-size: 15px; line-height: 1.6; color: var(--muted-strong); }
.legal-back { display: inline-block; margin-bottom: 24px; font-size: 14px; font-weight: 600; }

/* ── Utilidades móvil/escritorio (Ronda 2 — design_handoff_web_marketing) ── */
.mobile-only { display: none; }
.btn-block { display: block; width: 100%; text-align: center; }

.menu-toggle-checkbox { display: none; }
.menu-toggle-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 17px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle-btn .icon-close { display: none; }
.menu-toggle-checkbox:checked + .menu-toggle-btn .icon-open { display: none; }
.menu-toggle-checkbox:checked + .menu-toggle-btn .icon-close { display: block; }

.site-header .nav-mobile { display: none; }

.hero-mobile-copy h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 12px;
}
.hero-mobile-copy p.lead {
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  margin: 0 0 22px;
  max-width: 100%;
}
.hero-mobile-secondary {
  display: block;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 6px 0;
  text-decoration: none;
}
.hero-mobile-shot {
  margin: 24px -22px 0;
  aspect-ratio: 4/3;
  background: #1C0710;
  border-top: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
}
.hero-mobile-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pro-mobile-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}
.pro-mobile-desc { color: var(--muted-strong); font-size: 14px; line-height: 1.55; margin: 18px 0 0; }
.mobile-only .btn-pro-cta { margin-bottom: 18px; }

.how-dots { display: none; gap: 6px; justify-content: center; margin-top: 14px; }
.how-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.how-dots .dot-active { background: var(--accent); }

.sticky-cta-spacer { display: none; }
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  box-shadow: 0 -8px 20px rgba(43,20,26,.1);
}
.sticky-cta img { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }
.sticky-cta-text { flex: 1; min-width: 0; }
.sticky-cta-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.sticky-cta-tag { font-size: 11px; color: var(--muted); }
.sticky-cta-btn {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 11px 18px; border-radius: 12px; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.sticky-cta-btn:hover { color: #fff; background: var(--accent-light); }

@media (max-width: 640px) {
  section { scroll-margin-top: 64px; }

  /* Header: nav de escritorio fuera, botón hamburguesa + panel apilado */
  .site-header .nav-desktop { display: none; }
  .menu-toggle-btn { display: flex; }
  .site-header .menu-toggle-checkbox:checked ~ .nav-mobile {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    gap: 0;
    padding-top: 4px;
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .site-header .nav-mobile a {
    min-height: 46px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .site-header .nav-mobile a:last-child { border-bottom: none; }

  /* Hero: titular a toda anchura + captura a sangre, sin mockup de teléfono */
  .hero { padding: 32px 22px 0; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }

  /* Cómo funciona: carrusel horizontal con scroll-snap */
  .how-section { padding-left: 0; padding-right: 0; }
  .section-heading { padding: 0 22px; }
  .how-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 22px 6px;
    -webkit-overflow-scrolling: touch;
  }
  .how-card { flex: 0 0 76%; scroll-snap-align: start; }
  .how-dots { display: flex; }

  /* Para restaurantes: precio+CTA primero, copy después (ver .pro-inner.desktop-only / .mobile-only en el HTML) */
  .pro-mobile-heading { padding: 0; }

  /* Descarga: badges apilados en columna */
  .download-badges { flex-direction: column; align-items: stretch; }
  .download-badge { padding: 14px 18px; }

  /* CTA fijo inferior */
  .sticky-cta-spacer { display: block; height: 78px; }
  .sticky-cta { display: flex; }
}
