/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0B132B;   /* índigo crepuscular profundo */
  --bg-2:      #1C2541;   /* índigo secundario */
  --paper:     #F4EBD9;   /* pergamino cálido */
  --paper-dim: #E7DAC0;
  --ink:       #F4EBD9;
  --ink-soft:  #C9C2AE;
  --ink-mute:  #9A93A6;
  --jade:      #1B4332;
  --jade-soft: #2E5C48;
  --gold:      #E0A96D;
  --gold-strong: #C98D4C;
  --line:      rgba(244,235,217,0.14);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Manrope', -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; font-family: var(--serif); font-weight: 500; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--gold); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
}
.btn-primary { background: var(--gold); color: #1a1305; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(224,169,109,0.35); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #1a1305; box-shadow: 0 10px 40px rgba(224,169,109,0.3);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.02); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn-nav { padding: .6rem 1.3rem; font-size: .85rem; }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,19,43,0.7); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em; color: var(--paper); }
.nav-logo em { color: var(--gold); font-style: italic; }
.nav-links { display: none; gap: 2rem; font-size: .92rem; }
.nav-links a { color: var(--ink-soft); transition: color .3s; }
.nav-links a:hover { color: var(--gold); }
.nav-burger { display: flex; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-burger span { width: 22px; height: 2px; background: var(--paper); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 1.5rem 4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; opacity: .55; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,19,43,0.55) 0%, rgba(11,19,43,0.85) 65%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-block; padding: .5rem 1.1rem; border-radius: 999px;
  background: rgba(224,169,109,0.12); border: 1px solid rgba(224,169,109,0.35);
  color: var(--gold); font-size: .8rem; font-family: var(--mono); letter-spacing: .03em;
  margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--paper); margin-bottom: 1.2rem; }
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 2.2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-trust { font-size: .85rem; color: var(--ink-mute); font-family: var(--mono); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--line); border-radius: 999px;
}
.hero-scroll span {
  display: block; width: 4px; height: 8px; border-radius: 999px; background: var(--gold);
  margin: 6px auto; animation: scrollDot 2s var(--ease-soft) infinite;
}
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0);} 70% { opacity: 0; transform: translateY(14px);} 100% { opacity: 0;} }

/* =============================================================
   6. Sections generic
   ============================================================= */
.section { padding: 6rem 0; }
.kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .7rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--paper); margin-bottom: .8rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; margin-bottom: 2.5rem; }

/* Split layout (image + text) */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media img { border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.reverse .split-media { order: 2; }
}

/* =============================================================
   7. Books
   ============================================================= */
.books { background: var(--bg); }
.books-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 3rem; }
@media (min-width: 720px) { .books-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .books-grid { grid-template-columns: repeat(5, 1fr); } }

.book-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.book-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.35); border-color: rgba(224,169,109,0.4); }
.book-cover-wrap { border-radius: 10px; overflow: hidden; aspect-ratio: 2/3; background: var(--jade); }
.book-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.book-card h3 { font-size: 1.05rem; color: var(--paper); }
.book-card .book-subtitle { font-size: .82rem; color: var(--ink-mute); flex-grow: 1; }
.book-card .book-price { font-family: var(--mono); color: var(--gold); font-weight: 600; }
.book-card .btn { width: 100%; padding: .6rem; font-size: .82rem; }

.books-pack-cta {
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 2rem;
}
.pack-image {
  width: 84px; height: 105px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); flex-shrink: 0;
}
.pack-label { font-family: var(--mono); font-size: .78rem; color: var(--gold); text-transform: uppercase; margin-bottom: .3rem; }
.pack-price { font-size: 1.3rem; color: var(--paper); font-family: var(--serif); }
.strike { text-decoration: line-through; color: var(--ink-mute); font-size: .9em; }

/* =============================================================
   8. Meditations / Course (split sections)
   ============================================================= */
.med-list { list-style: none; margin: 1.2rem 0; display: grid; gap: .6rem; }
.med-list li {
  font-family: var(--serif); font-size: 1.15rem; color: var(--paper);
  padding-left: 1.6rem; position: relative;
}
.med-list li::before { content: "☯"; position: absolute; left: 0; color: var(--gold); }
.med-note { color: var(--ink-soft); margin-bottom: 1.6rem; }

.audio-sample {
  display: flex; align-items: center; gap: .9rem; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.2rem; margin-bottom: 1.8rem;
}
.audio-play {
  width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #1a1305;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem;
}
.audio-track { flex-grow: 1; height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.audio-progress { height: 100%; width: 0%; background: var(--gold); transition: width .1s linear; }
.audio-time { font-size: .78rem; color: var(--ink-mute); white-space: nowrap; }

.price-row { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.price-tag { font-family: var(--mono); font-size: 1.4rem; color: var(--gold); font-weight: 600; }

.course-desc { color: var(--ink-soft); margin-bottom: 1.4rem; }
.course-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.8rem; color: var(--paper); }

/* =============================================================
   9. Bundle
   ============================================================= */
.bundle { background: radial-gradient(ellipse at 50% 0%, rgba(224,169,109,0.1), transparent 60%); }
.bundle-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1.5px solid var(--gold); border-radius: 24px; padding: 3.5rem 2.2rem;
  box-shadow: 0 40px 100px rgba(224,169,109,0.12);
}
.bundle-kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.bundle-title { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--paper); margin-bottom: .6rem; }
.bundle-sub { color: var(--ink-soft); margin-bottom: 2rem; }
.bundle-includes { list-style: none; display: grid; gap: .8rem; margin-bottom: 2.2rem; font-size: 1.05rem; color: var(--paper); }
.bundle-price-block { margin-bottom: 2rem; }
.bundle-real-value { color: var(--ink-mute); margin-bottom: .3rem; }
.bundle-offer-price { font-family: var(--serif); font-size: 3.2rem; color: var(--gold); }
.bundle-offer-price span { font-size: 1.2rem; color: var(--ink-mute); }
.bundle-savings { font-family: var(--mono); color: var(--jade-soft); background: rgba(46,92,72,0.25); display: inline-block; padding: .3rem .9rem; border-radius: 999px; margin-top: .5rem; font-size: .85rem; }
.bundle-fineprint { margin-top: 1rem; font-size: .78rem; color: var(--ink-mute); }

/* =============================================================
   10. Testimonials
   ============================================================= */
.demo-note { font-size: .8rem; color: var(--ink-mute); font-style: italic; margin-top: .4rem; margin-bottom: 2rem; }
.testimonials-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem;
}
.testimonial-stars { color: var(--gold); margin-bottom: .8rem; letter-spacing: .1em; }
.testimonial-text { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.2rem; font-style: italic; }
.testimonial-name { font-family: var(--mono); font-size: .8rem; color: var(--paper); }

/* =============================================================
   11. FAQ
   ============================================================= */
.faq-list { display: grid; gap: .8rem; max-width: 760px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center;
  color: var(--paper); font-weight: 600;
}
.faq-q::after { content: "+"; font-size: 1.4rem; color: var(--gold); transition: transform .3s var(--ease-out); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a-inner { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); font-size: .92rem; }

/* =============================================================
   12. Diagnostic tool
   ============================================================= */
.diagnostic-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 2.5rem 2rem;
}
.diag-step { display: none; }
.diag-step.active { display: block; }
.diag-question { font-family: var(--serif); font-size: 1.3rem; color: var(--paper); margin-bottom: 1.2rem; }
.diag-options { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.diag-option {
  text-align: left; padding: .9rem 1.2rem; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-soft); transition: border-color .3s, background .3s;
}
.diag-option:hover, .diag-option.selected { border-color: var(--gold); background: rgba(224,169,109,0.08); color: var(--paper); }
.diag-progress { display: flex; gap: .4rem; margin-bottom: 1.5rem; }
.diag-progress span { flex: 1; height: 3px; background: var(--line); border-radius: 999px; }
.diag-progress span.done { background: var(--gold); }
.diag-email input {
  width: 100%; padding: .9rem 1.1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--paper); font-family: var(--sans); margin-bottom: 1rem;
}
.diag-result { display: none; }
.diag-result.active { display: block; }
.diag-result-title { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; }
.diag-result-text { color: var(--ink-soft); margin-bottom: 1.5rem; }
.diag-loading { color: var(--ink-mute); font-style: italic; }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { background: var(--bg-2); padding: 4rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { margin-bottom: .5rem; }
.footer-tagline { color: var(--ink-mute); font-size: .85rem; }
.footer-heading { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .8rem; }
.footer-grid a { display: block; color: var(--ink-soft); font-size: .88rem; margin-bottom: .5rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-copy { text-align: center; color: var(--ink-mute); font-size: .78rem; }

/* =============================================================
   14. Zen Chat widget
   ============================================================= */
.zen-chat { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; }
.zen-chat-toggle {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 12px 40px rgba(224,169,109,0.4);
  display: flex; align-items: center; justify-content: center;
}
.zen-chat-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.zen-chat-pulse {
  position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold);
  animation: pulseRing 2.4s var(--ease-soft) infinite;
}
@keyframes pulseRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

.zen-chat-panel {
  position: absolute; bottom: 78px; right: 0; width: min(340px, 90vw); max-height: 480px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.zen-chat-panel[hidden] { display: none; }
.zen-chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.zen-chat-head .zen-chat-avatar { width: 36px; height: 36px; }
.zen-chat-name { color: var(--paper); font-weight: 600; font-size: .9rem; }
.zen-chat-status { color: var(--jade-soft); font-size: .72rem; }
.zen-chat-close { margin-left: auto; color: var(--ink-mute); font-size: 1.1rem; }
.zen-chat-messages { flex-grow: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; max-height: 320px; }
.zen-msg { max-width: 85%; padding: .6rem .9rem; border-radius: 14px; font-size: .87rem; line-height: 1.4; }
.zen-msg.bot { background: var(--bg); color: var(--ink-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.zen-msg.user { background: var(--gold); color: #1a1305; align-self: flex-end; border-bottom-right-radius: 4px; }
.zen-chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }
.zen-chat-form input {
  flex-grow: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1rem; color: var(--paper); font-size: .87rem;
}
.zen-chat-form button { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #1a1305; flex-shrink: 0; }

/* =============================================================
   15. Reduced motion (intrusive only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll span { animation: none; }
  .zen-chat-pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   16. Reveal utility (used by main.js)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   17. Welcome overlay — entry survey
   ============================================================= */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(ellipse at 50% 20%, var(--bg-2), var(--bg) 75%);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.welcome-overlay.hidden-out { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-modal {
  max-width: 480px; width: 100%; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 2.6rem 2rem; box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.welcome-avatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.2rem; border: 2px solid var(--gold);
}
.welcome-eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.welcome-question { font-family: var(--serif); font-size: 1.35rem; color: var(--paper); margin-bottom: 1.3rem; }
.welcome-options { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.welcome-option {
  padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-soft); text-align: left; transition: border-color .3s, background .3s;
}
.welcome-option:hover { border-color: var(--gold); background: rgba(224,169,109,0.08); color: var(--paper); }
.welcome-progress { display: flex; gap: .35rem; justify-content: center; margin-bottom: 1.4rem; }
.welcome-progress span { width: 22px; height: 3px; border-radius: 999px; background: var(--line); }
.welcome-progress span.done { background: var(--gold); }
.welcome-skip { display: block; margin-top: .8rem; font-size: .78rem; color: var(--ink-mute); text-decoration: underline; }
.welcome-result-level {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-strong); background: rgba(224,169,109,0.12); border: 1px solid rgba(224,169,109,0.35);
  display: inline-block; padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.welcome-result-level span { color: var(--ink-mute); }
.welcome-result-title { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); margin-bottom: .8rem; }
.welcome-result-text { color: var(--ink-soft); margin-bottom: 1.6rem; font-size: .95rem; }

