/* ============================================================
   landing.css — El Secreto de las Manos (rediseño claro)
   Estilos de los 8 bloques de la landing. Usa tokens de base.css
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   BOTÓN WHATSAPP (CTA primario)
   ──────────────────────────────────────────────────────────── */
.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-ui);
  font-weight: var(--fw-semibold);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: var(--shadow-wa);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast);
}
.btn-wa:hover { background: var(--wa-green-d); transform: translateY(-1px); }
.btn-wa.btn-sm { padding: 9px 18px; font-size: var(--text-sm); }
.btn-wa.btn-lg { padding: 16px 32px; font-size: var(--text-md); }
.btn-wa.btn-full { width: 100%; justify-content: center; }


/* ────────────────────────────────────────────────────────────
   HEADER CLARO
   Overrides sobre los estilos oscuros de components.css
   ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  /* Tinte cálido sutil + hairline para diferenciar del hero (#FBF9F5) */
  background: rgba(247,241,234,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-container { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }

/* Logo — override var(--white-70) de components.css */
.logo-text { font-family: var(--font-display); color: var(--ink); font-size: var(--text-md); }
.header-logo:hover .logo-text { color: var(--plum); }

/* Nav links — override var(--white-40) de components.css */
.nav-link { color: var(--ink-soft); text-decoration: none; font-size: var(--text-sm); }
.nav-link:hover { color: var(--plum); }
.nav-link::after { background: var(--plum); }

/* Hamburger lines — override var(--white-50) de components.css */
.menu-toggle:hover { background: var(--plum-soft); }
.menu-line { background: var(--ink); }

/* ── Drawer mobile (override completo de components.css) ── */
.mobile-menu {
  background: var(--bg-base);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  z-index: calc(var(--z-header) + 1);
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.mobile-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-brand { font-family: var(--font-display); color: var(--ink); font-size: var(--text-md); }
.menu-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--plum-soft); color: var(--plum);
  font-size: 22px; cursor: pointer; transition: background var(--t-fast);
}
.menu-close:hover { background: var(--gold-soft); color: var(--gold); }

.mobile-nav {
  flex: 1;
  align-items: stretch;
  gap: 0;
  padding: var(--sp-4) 0;
}
.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-regular);
  color: var(--ink);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-nav-link:hover { color: var(--plum); background: var(--plum-soft); }

.mobile-menu-footer {
  margin-top: auto;
  max-width: none;
  padding: var(--sp-6);
  border-top: 1px solid var(--line);
}
.mobile-menu-note {
  font-size: var(--text-xs); color: var(--ink-faint);
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}


/* ────────────────────────────────────────────────────────────
   HERO (bloque 1)
   ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--bg-base);
  padding: 100px 0 60px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 560px; }
.eyebrow { font-family: var(--font-ui); font-size: var(--text-xs); letter-spacing: var(--ls-wider); text-transform: uppercase; font-weight: var(--fw-semibold); opacity: 1; }
.hero-eyebrow { color: var(--plum); }
.hero-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: clamp(34px, 9vw, var(--text-4xl)); line-height: var(--lh-tight); }
.hero-subtitle { font-size: var(--text-md); color: var(--ink-soft); line-height: var(--lh-relaxed); max-width: 28ch; }
.hero-microcopy { font-size: var(--text-xs); color: var(--ink-faint); }


/* ────────────────────────────────────────────────────────────
   TIRA DE CONFIANZA (bloque 2)
   ──────────────────────────────────────────────────────────── */
.trust-strip { background: var(--bg-strip); border-block: 1px solid var(--line); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 0; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.trust-num, .trust-suffix { font-family: var(--font-display); color: var(--ink); font-size: var(--text-lg); }
.trust-label { font-size: var(--text-xs); color: var(--ink-soft); margin-top: 2px; }
.trust-div { width: 1px; height: 28px; background: var(--line); }


/* ────────────────────────────────────────────────────────────
   TEMAS — AMOR AL FRENTE (bloque 3)
   ──────────────────────────────────────────────────────────── */
.section { padding: var(--sp-16) 0; }
.section-header { text-align: center; margin-bottom: var(--sp-8); }
.eyebrow.gold { color: var(--gold); }

.tema-featured {
  background: var(--plum); color: #fff; border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6); text-align: center; max-width: 520px; margin: 0 auto var(--sp-4);
  box-shadow: var(--shadow-glow-plum);
}
.tema-tag { font-size: var(--text-xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: #e7c9df; font-weight: var(--fw-semibold); }
.tema-featured-title { font-family: var(--font-display); font-size: var(--text-2xl); margin: 8px 0; color: #fff; }
.tema-featured-desc { color: #f0dcea; font-size: var(--text-base); margin-bottom: var(--sp-5); line-height: var(--lh-relaxed); }
.tema-featured .btn-wa { background: #fff; color: var(--plum-deep); box-shadow: none; }
.tema-featured .btn-wa:hover { background: #f3e9f0; }

.tema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); max-width: 520px; margin: 0 auto; }
.tema-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-base); padding: var(--sp-4); text-align: center; }
.tema-card h4 { font-family: var(--font-ui); font-weight: var(--fw-semibold); color: var(--ink); font-size: var(--text-base); }
.tema-card p { color: var(--ink-faint); font-size: var(--text-sm); margin-top: 2px; }


/* ────────────────────────────────────────────────────────────
   CÓMO FUNCIONA — 3 pasos (bloque 4)
   ──────────────────────────────────────────────────────────── */
.section-tint { background: var(--bg-tint); }
.section-title { font-family: var(--font-display); color: var(--ink); font-size: var(--text-2xl); margin-top: 6px; }
.proceso-steps { display: grid; gap: var(--sp-6); max-width: 760px; margin: 0 auto; }
@media (min-width: 720px) { .proceso-steps { grid-template-columns: repeat(3,1fr); } }
.proceso-step { text-align: center; }
.proceso-num { font-family: var(--font-display); color: var(--plum); font-size: var(--text-3xl); display: block; }
.proceso-step h3 { font-family: var(--font-ui); font-weight: var(--fw-semibold); color: var(--ink); font-size: var(--text-md); margin: 6px 0; }
.proceso-step p { color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--lh-relaxed); }


/* ────────────────────────────────────────────────────────────
   LAS LECTURAS — Tarot + Manos (bloque 5)
   ──────────────────────────────────────────────────────────── */
.reading-block { display: grid; gap: var(--sp-8); align-items: center; margin-bottom: var(--sp-16); }
@media (min-width: 860px) {
  .reading-block { grid-template-columns: 1fr 1fr; }
  .reading-block-reverse .reading-visual { order: 2; }
}
.eyebrow.plum { color: var(--plum); }
.reading-title { font-family: var(--font-display); color: var(--ink); font-size: var(--text-xl); margin: 6px 0 10px; }
.reading-desc { color: var(--ink-soft); line-height: var(--lh-relaxed); }
.check-list { list-style: none; margin: var(--sp-4) 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: var(--text-sm); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Deck de Tarot */
.tarot-deck-wrapper { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.tarot-hint { color: var(--ink-faint); font-size: var(--text-sm); text-align: center; margin-bottom: var(--sp-4); font-family: var(--font-ritual); font-style: italic; }
.tarot-bottom { margin-top: var(--sp-3); }

/* Botón outline — override del oscuro de components.css */
.btn-outline { background: transparent; border: 1px solid var(--plum); color: var(--plum); border-radius: var(--r-full); padding: 8px 16px; cursor: pointer; font-family: var(--font-ui); font-size: var(--text-sm); }
.btn-outline:hover { background: var(--plum-soft); box-shadow: none; }

/* Precio */
.price { display: inline-flex; align-items: baseline; gap: 8px; margin: var(--sp-3) 0; }
.price-old { color: var(--ink-faint); text-decoration: line-through; font-size: var(--text-base); }
.price-now { color: var(--ink); font-family: var(--font-display); font-size: var(--text-xl); }
.price-badge { background: var(--gold-soft); color: var(--gold); font-size: var(--text-xs); font-weight: var(--fw-semibold); padding: 3px 8px; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: var(--ls-wide); }

/* Hand explorer — adaptar colores del SVG al modo claro */
.hand-explorer { width: 100%; max-width: 320px; margin: 0 auto; }
.hand-image-wrapper { position: relative; }
.hand-image-wrapper svg { width: 100%; height: auto; display: block; }


/* HAND EXPLORER — hotspots (portado de sections.css) */

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Posiciones sobre el SVG */
.hs-corazon { top: 55%; left: 54%; }
.hs-cabeza  { top: 63%; left: 52%; }
.hs-vida    { top: 67%; left: 33%; }

.hs-pulse {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(122, 59, 107, 0.15);
  border: 1.5px solid var(--plum);
  cursor: pointer;
  position: relative;
  animation: hsPulse 2.5s ease-in-out infinite;
  transition: background 0.2s, border-color 0.2s;
}
.hs-pulse:hover,
.hotspot.is-active .hs-pulse {
  background: rgba(122, 59, 107, 0.28);
  border-color: var(--plum-deep);
}

@keyframes hsPulse {
  0%   { box-shadow: 0 0 0 0   rgba(122, 59, 107, 0.45); }
  60%  { box-shadow: 0 0 0 8px rgba(122, 59, 107, 0); }
  100% { box-shadow: 0 0 0 0   rgba(122, 59, 107, 0); }
}

/* Cada hotspot tiene su propio delay para no pulsar sincronizados */
.hs-corazon .hs-pulse { animation-delay: 0s; }
.hs-cabeza  .hs-pulse { animation-delay: 0.8s; }
.hs-vida    .hs-pulse { animation-delay: 1.6s; }

/* Tooltips (default: aparece arriba centrado) */
.hs-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 8px);
  padding: 10px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: var(--shadow-md);
}
.hotspot.is-active .hs-tooltip,
.hotspot:hover     .hs-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip derecho (para hs-vida, que está al borde izquierdo) */
.hs-tooltip-right {
  left: calc(100% + 10px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  width: 146px;
}
.hotspot.is-active .hs-tooltip-right,
.hotspot:hover     .hs-tooltip-right {
  transform: translateY(-50%) translateX(0);
}

.hs-tooltip h4 {
  font-family: var(--font-ritual);
  font-size: 13px;
  color: var(--plum);
  margin: 0 0 4px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.hs-tooltip p {
  font-family: var(--font-ui);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* Mobile: reducir dimensiones del wrapper (alineado con hand-explorer.js) */
@media (max-width: 768px) {
  .hand-explorer,
  .hand-image-wrapper,
  .hand-image-wrapper svg {
    width: 180px;
    height: 218px;
  }
}

/* Mobile pequeño: tooltip de hs-vida se redirige hacia arriba */
@media (max-width: 480px) {
  .hs-vida .hs-tooltip-right {
    left: 0;
    right: auto;
    bottom: calc(100% + 10px);
    top: auto;
    width: 130px;
    transform: translateY(6px);
  }
  .hotspot.is-active .hs-vida .hs-tooltip-right,
  .hotspot:hover     .hs-vida .hs-tooltip-right {
    transform: translateY(0);
  }
}


/* TAROT DECK — instruccion y pie (portado de sections.css) */

.tarot-instruction {
  color: var(--ink-faint);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-3);
  font-family: var(--font-ritual);
  font-style: italic;
  font-weight: 300;
  text-align: center;
  transition: opacity 0.8s ease;
  margin: 0 0 var(--sp-3);
  opacity: 0;
}
.tarot-instruction.visible { opacity: 1; }


/* ────────────────────────────────────────────────────────────
   BLOQUE 6 — TEST OPCIONAL
   ──────────────────────────────────────────────────────────── */
.test-card {
  border: 1px dashed var(--gold);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
}
.test-q {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: var(--text-lg);
  margin: 0 0 6px;
}
.test-sub {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin: 0 0 var(--sp-4);
}
.test-note {
  color: var(--ink-faint);
  font-size: var(--text-xs);
  margin-top: 10px;
}


/* ────────────────────────────────────────────────────────────
   BLOQUE 7 — TESTIMONIOS
   ──────────────────────────────────────────────────────────── */
.testi-quotes {
  display: grid;
  gap: var(--sp-4);
  max-width: 720px;
  margin: 0 auto var(--sp-10);
}
@media (min-width: 720px) { .testi-quotes { grid-template-columns: 1fr 1fr; } }
.testi-quote {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin: 0;
}
.testi-quote p {
  font-family: var(--font-ritual);
  font-style: italic;
  color: var(--ink);
  font-size: var(--text-md);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--sp-3);
}
.testi-quote cite {
  display: block;
  font-style: normal;
  color: var(--plum);
  font-size: var(--text-sm);
}
.testi-shots-label {
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}
.testi-track {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.testi-shot {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: start;
}
.testi-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--r-base);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}


/* ────────────────────────────────────────────────────────────
   BLOQUE 8 — FAQ ACORDEÓN
   ──────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: none; cursor: pointer; padding: var(--sp-4) 0; text-align: left; color: var(--ink); font-size: var(--text-base); font-family: var(--font-ui); }
.faq-ico { color: var(--gold); font-size: var(--text-lg); transition: transform var(--t-fast); }
.faq-q[aria-expanded="true"] .faq-ico { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--t-base) var(--ease-out); }
.faq-a-inner { padding: 0 0 var(--sp-4); color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--lh-relaxed); }


/* ────────────────────────────────────────────────────────────
   BLOQUE 8 — CTA FINAL
   ──────────────────────────────────────────────────────────── */
.cta-final { text-align: center; background: var(--bg-tint); }
.cta-final-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-final-title { font-family: var(--font-display); color: var(--ink); font-size: var(--text-2xl); }
.cta-final-sub { color: var(--ink-soft); }


/* ────────────────────────────────────────────────────────────
   FOOTER (Task 12)
   ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: var(--sp-16) 0 var(--sp-10); }
.footer-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { font-family: var(--font-display); color: #fff; font-size: var(--text-md); }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: var(--text-sm); margin: 8px 0 var(--sp-4); }
.footer-nav-title { color: var(--gold); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); }
.footer-links ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; padding: 0; }
.footer-link { background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer; font-size: var(--text-sm); text-decoration: none; padding: 0; }
.footer-link:hover { color: #fff; }
.footer-bottom { margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,0.12); font-size: var(--text-xs); color: rgba(255,255,255,0.45); display: grid; gap: 6px; }


/* ────────────────────────────────────────────────────────────
   FLOATING WA BUTTON (ícono flotante — desktop y mobile)
   ──────────────────────────────────────────────────────────── */
.floating-wa {
  position: fixed; right: 16px; bottom: 16px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa-green); color: #fff; border: none;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-wa); cursor: pointer; z-index: var(--z-overlay);
  bottom: calc(16px + env(safe-area-inset-bottom));
}
.floating-wa:hover { background: var(--wa-green-d); transform: scale(1.08); }


/* La barra completa de WhatsApp se reemplazó por el ícono flotante */
.sticky-wa { display: none; }
