/* ================================================================
   DESIGN TOKENS — idénticos al template maestra + extras landing
   ================================================================ */
:root {
  --bg:          #FDF8F5;
  --surface:     #FFFFFF;
  --surface-2:   #FBF0EC;
  --surface-3:   #F0DDD8;
  --accent:      #C75449;
  --accent-dim:  rgba(199,84,73,0.10);
  --accent-glow: rgba(199,84,73,0.22);
  --green:       #25D366;
  --green-dark:  #128C7E;
  --text:        #2A1410;
  --text-2:      #7A4840;
  --text-3:      #B08880;
  --border:      rgba(42,20,16,0.08);
  --border-2:    rgba(42,20,16,0.13);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 50px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 12px 36px rgba(0,0,0,0.11), 0 4px 10px rgba(0,0,0,0.05), 0 0 0 1px rgba(199,84,73,0.12);
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --t:           0.22s;
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'Archivo', system-ui, sans-serif;
  /* Landing extras */
  --hero-bg:     #0c0302;
  --max-w:       960px;
  --section-py:  5rem;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ================================================================
   UTILITIES
   ================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eyebrow--light { color: rgba(253,248,245,0.55); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  box-shadow: 0 4px 16px var(--accent-glow);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #b54840;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn-secondary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,245,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.landing-nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 36px; width: auto; }

.nav-cta-long { display: inline; }
.nav-cta-short { display: none; }

/* ================================================================
   HERO
   ================================================================ */
.section-hero {
  background: var(--hero-bg);
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s var(--ease) both;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #FDF8F5;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.65s var(--ease) 0.08s both;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(253,248,245,0.72);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 440px;
  animation: fadeUp 0.65s var(--ease) 0.16s both;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  animation: fadeUp 0.65s var(--ease) 0.24s both;
}

.hero-meta {
  font-size: 0.78rem;
  color: rgba(253,248,245,0.45);
  letter-spacing: 0.02em;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) 0.12s both;
}

.hero-phone {
  max-height: 560px;
  width: auto;
  transform: rotate(6deg) translateY(-16px);
  filter: drop-shadow(0 24px 64px rgba(0,0,0,0.55));
  border-radius: 32px;
}

.hero-phone-placeholder {
  width: 260px;
  height: 520px;
  background: rgba(253,248,245,0.06);
  border-radius: 36px;
  border: 1.5px solid rgba(253,248,245,0.12);
  transform: rotate(6deg) translateY(-16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(253,248,245,0.35);
  font-size: 0.8rem;
  text-align: center;
  padding: 2rem;
}
.hero-phone-placeholder svg { opacity: 0.35; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   PAIN
   ================================================================ */
.section-pain {
  background: var(--surface);
  padding: var(--section-py) 0;
}

.pain-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-h2--light { color: #FDF8F5; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.pain-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.pain-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.pain-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.pain-text {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ================================================================
   SOLUTION
   ================================================================ */
.section-solution {
  background: var(--bg);
  padding: var(--section-py) 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.solution-visual {
  order: -1;
}

.solution-mockup {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.solution-mockup-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-3);
  font-size: 0.82rem;
  text-align: center;
  padding: 2rem;
}

.solution-text { display: flex; flex-direction: column; gap: 1rem; }

.solution-text .section-h2 { margin-bottom: 0.25rem; }

.solution-p {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ================================================================
   CÓMO FUNCIONA
   ================================================================ */
.section-how {
  background: var(--surface-2);
  padding: var(--section-py) 0;
}

.how-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

/* Connector line between steps */
.how-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(16.6% + 1rem);
  right: calc(16.6% + 1rem);
  height: 1px;
  background: var(--border-2);
  pointer-events: none;
}

.how-step { text-align: center; padding: 0 1rem; }

.how-step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.how-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.how-step-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ================================================================
   VALUE STACK
   ================================================================ */
.section-value {
  background: var(--hero-bg);
  padding: var(--section-py) 0;
}

.value-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.value-inner .section-h2--light { margin-bottom: 3rem; }

.value-table {
  background: rgba(253,248,245,0.04);
  border: 1px solid rgba(253,248,245,0.08);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  margin-bottom: 1.25rem;
}

.value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.75rem;
  gap: 1rem;
}

.value-label {
  font-size: 0.9rem;
  color: rgba(253,248,245,0.72);
  text-align: left;
}

.value-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(253,248,245,0.55);
  white-space: nowrap;
}

.value-divider {
  height: 1px;
  background: rgba(253,248,245,0.12);
  margin: 0.25rem 1.75rem;
}

.value-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.75rem 0.5rem;
  gap: 1rem;
}

.value-total-label {
  font-size: 0.85rem;
  color: rgba(253,248,245,0.45);
}

.value-total-price {
  font-size: 1rem;
  color: rgba(253,248,245,0.35);
  text-decoration: line-through;
}

.value-final-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.75rem 1rem;
  gap: 1rem;
}

.value-final-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FDF8F5;
}

.value-final-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.value-note {
  font-size: 0.78rem;
  color: rgba(253,248,245,0.35);
  margin-bottom: 2rem;
}

/* ================================================================
   SOCIAL PROOF
   ================================================================ */
.section-proof {
  background: var(--bg);
  padding: var(--section-py) 0;
}

.proof-header {
  margin-bottom: 3rem;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.testimonial-card--wide {
  grid-column: 1 / -1;
}

.testimonial-quote {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-biz {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 0.1rem;
}

.proof-demo {
  text-align: center;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.proof-demo h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ================================================================
   PARA QUIÉN
   ================================================================ */
.section-forwho {
  background: var(--surface-2);
  padding: var(--section-py) 0;
}

.forwho-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.forwho-lead {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.forwho-left { display: flex; flex-direction: column; }

.forwho-note {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  font-style: italic;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.1rem;
}

/* ================================================================
   FAQ
   ================================================================ */
.section-faq {
  background: var(--surface);
  padding: var(--section-py) 0;
}

.faq-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color var(--t);
}
.faq-question:hover { color: var(--accent); }

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease), padding 0.2s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.25rem; }

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ================================================================
   CTA FINAL
   ================================================================ */
.section-cta {
  background: var(--accent);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Decorative circle */
.section-cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  color: #FDF8F5;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(253,248,245,0.80);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(253,248,245,0.55);
}

/* ================================================================
   FOOTER
   ================================================================ */
.landing-footer {
  background: var(--hero-bg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-site {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(253,248,245,0.60);
}

.footer-tagline, .footer-copy {
  font-size: 0.8rem;
  color: rgba(253,248,245,0.35);
}

.footer-copy a {
  color: rgba(253,248,245,0.45);
  transition: color var(--t);
}
.footer-copy a:hover { color: rgba(253,248,245,0.75); }

/* ================================================================
   FLOATING WHATSAPP BUTTON
   ================================================================ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background var(--t), box-shadow var(--t);
  pointer-events: none;
}
.wa-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.wa-float:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 28px rgba(37,211,102,0.50);
}

/* ================================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  /* Nav */
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }

  /* Hero */
  .section-hero { min-height: auto; padding: 4rem 0 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-phone-placeholder { width: 180px; height: 360px; transform: rotate(4deg) translateY(0); }
  .hero-sub { max-width: 100%; }
  .hero-cta-group { align-items: stretch; }

  /* Pain */
  .pain-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Solution */
  .solution-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .solution-visual { order: 0; }

  /* How */
  .how-steps { grid-template-columns: 1fr; gap: 2rem; }
  .how-steps::before { display: none; }
  .how-step { text-align: left; padding: 0; }

  /* Value Stack */
  .value-row, .value-total-row, .value-final-row { padding: 0.75rem 1.25rem; }

  /* Social Proof */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card--wide { grid-column: auto; }

  /* For Who */
  .forwho-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Floating WA */
  .wa-float { bottom: 1rem; right: 1rem; padding: 0.65rem 1rem; }
}

@media (max-width: 480px) {
  .hero-phone-placeholder { display: none; }
  .btn-whatsapp { font-size: 0.95rem; padding: 0.9rem 1.5rem; }
}
