/* =================================================================
   AIXA — Luxury Trader UI
   Paleta: negro profundo + oro (XAUUSD). Tipografía editorial.
   ================================================================= */

:root {
  /* Color */
  --bg:        #0a0a0c;
  --bg-2:      #0f0f12;
  --panel:     #15151a;
  --panel-2:   #1b1b21;
  --line:      rgba(201,162,75,.18);
  --line-soft: rgba(255,255,255,.07);

  --ink:       #f5f2ea;
  --ink-soft:  #c8c4ba;
  --ink-mute:  #8d8a83;

  --gold:      #d4af37;
  --gold-2:    #f2d98a;
  --gold-deep: #a9842c;
  --gold-grad: linear-gradient(135deg, #f2d98a 0%, #d4af37 45%, #a9842c 100%);

  --wa:        #25d366;
  --wa-deep:   #1da851;

  /* Type */
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --maxw: 1360px;
  --maxw-text: 760px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  --gold-glow: 0 0 0 1px rgba(212,175,55,.25), 0 20px 60px -20px rgba(212,175,55,.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Grain / vignette overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(212,175,55,.07), transparent 55%),
    radial-gradient(100% 100% at 50% 120%, rgba(0,0,0,.7), transparent 60%);
  mix-blend-mode: screen;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 72px); }
.container--narrow { max-width: 860px; }
.section { padding-block: clamp(50px, 6vw, 88px); position: relative; z-index: 2; }
.section--dark { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow--live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 1.8s infinite; }

.h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em;
}
.gold { color: var(--gold); }
.section__head { max-width: 880px; margin-bottom: clamp(30px, 3.5vw, 48px); }
.section__sub { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap; line-height: 1;
}
.btn--gold { background: var(--gold-grad); color: #1a1407; box-shadow: var(--gold-glow); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(212,175,55,.4), 0 24px 50px -16px rgba(212,175,55,.5); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-2); background: rgba(212,175,55,.06); }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, padding .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,12,.78); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: var(--gold-grad); color: #1a1407; font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  box-shadow: var(--gold-glow);
}
.brand__text { font-size: 1.25rem; letter-spacing: .28em; padding-left: .1em; }

.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__links a { font-size: .95rem; font-weight: 600; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0; background: var(--gold-grad); transition: width .28s; }
.nav__links a:hover::after { width: 100%; }
.nav__event { color: var(--gold) !important; }

.nav__cta { margin-left: 6px; padding: 11px 20px; }
.nav__cta svg { flex: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; padding-top: 120px; padding-bottom: 80px; overflow: hidden; z-index: 2; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute; top: -20%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(212,175,55,.18), transparent 60%); filter: blur(20px);
}
.ticks {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(212,175,55,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 75%);
}

.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5vw, 88px); align-items: center;
  min-height: min(84vh, 760px);
}
.hero__title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.015em;
  font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 48px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); }
.hero__stats span { font-size: .82rem; color: var(--ink-mute); letter-spacing: .04em; }

/* Portrait */
.hero__visual { position: relative; }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), #0c0c0e);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.portrait--alt { aspect-ratio: 1/1; }
.portrait__ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(212,175,55,.14), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 12px, transparent 12px 24px);
}
.portrait__initials { font-family: var(--serif); font-size: 3.4rem; color: var(--gold); font-weight: 700; }
.portrait__cap { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.portrait__badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(10,10,12,.7); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column;
}
.portrait__badge strong { font-family: var(--serif); font-size: 1.15rem; }
.portrait__badge span { font-size: .8rem; color: var(--gold-2); }

.quote-chip {
  position: absolute; top: 22px; left: -18px; background: var(--panel); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 14px; font-style: italic; font-family: var(--serif);
  color: var(--ink-soft); font-size: .95rem; max-width: 230px; box-shadow: var(--shadow);
}

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; z-index: 3; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--gold); animation: cue 1.6s infinite; }

/* =================================================================
   VALUE BAND
   ================================================================= */
.band { position: relative; z-index: 3; }
.band__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin-top: -44px; box-shadow: var(--shadow);
  background: var(--bg-2);
}
.band__item { padding: 28px clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.band__item:first-child { border-left: 0; }
.band__item span { font-family: var(--serif); color: var(--gold-deep); font-size: .9rem; }
.band__item h3 { font-size: 1.15rem; margin: 6px 0 6px; }
.band__item p { font-size: .9rem; color: var(--ink-mute); }

/* =================================================================
   SOBRE MÍ
   ================================================================= */
.about { padding-block: clamp(54px, 6vw, 92px); position: relative; z-index: 2; }
.about__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about__copy p { color: var(--ink-soft); margin-top: 18px; max-width: 640px; }
.about__signature { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--gold); margin: 26px 0 22px; }
.about .portrait--alt { max-width: 420px; }

/* =================================================================
   ECOSISTEMA
   ================================================================= */
.eco__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco__card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.eco__card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.eco__card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.eco__card p { color: var(--ink-soft); font-size: .95rem; }
.ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(212,175,55,.08); border: 1px solid var(--line); margin-bottom: 18px;
}

/* =================================================================
   PILARES
   ================================================================= */
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative; padding: 38px 30px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft); overflow: hidden;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.pillar:hover::before { transform: scaleX(1); }
.pillar__num { font-family: var(--serif); font-size: 2.6rem; color: rgba(212,175,55,.35); line-height: 1; }
.pillar h3 { font-size: 1.45rem; margin: 14px 0 10px; font-family: var(--serif); }
.pillar p { color: var(--ink-soft); }

/* =================================================================
   EVENTO
   ================================================================= */
.event__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.event__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.event__media img { width: 100%; }
.event__meta { display: grid; gap: 16px; margin: 28px 0; }
.event__meta li { display: flex; gap: 14px; align-items: flex-start; }
.event__ico { font-size: 1.3rem; }
.event__meta strong { display: block; font-size: 1.05rem; }
.event__meta small { color: var(--ink-mute); }
.event__learn-title { font-weight: 700; color: var(--gold-2); margin-bottom: 12px; }
.event__learn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-bottom: 30px; }
.event__learn li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: .95rem; }
.event__learn li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }
.event__note { margin-top: 14px; font-size: .85rem; color: var(--ink-mute); }

/* =================================================================
   PLANES
   ================================================================= */
.plans__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1080px; margin-inline: auto; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: 22px; padding: 38px 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--line); }
.plan--featured {
  border-color: rgba(212,175,55,.5);
  background: linear-gradient(180deg, #1c1810, #100d08);
  box-shadow: var(--gold-glow);
}
.plan__ribbon {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold-grad); color: #1a1407; font-weight: 800; font-size: .8rem;
  letter-spacing: .05em; padding: 7px 18px; border-radius: 999px; white-space: nowrap;
}
.plan__name { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.plan__cur { color: var(--ink-mute); font-weight: 700; letter-spacing: .1em; }
.plan__desc { color: var(--ink-soft); margin: 16px 0 8px; font-size: .95rem; }
.plan__features { display: grid; gap: 13px; margin: 22px 0 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.plan__features li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: .95rem; }
.plan__features li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
  background: rgba(212,175,55,.15); color: var(--gold-2); border: 1px solid var(--line);
}
.plan__features li strong { color: var(--ink); }
.plan .btn { margin-top: auto; }

/* =================================================================
   COMUNIDAD / TESTIMONIOS
   ================================================================= */
.community__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 50px; }
.community__chips li {
  padding: 11px 20px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-soft);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
}
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 26px; }
.testimonial blockquote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); line-height: 1.5; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.testimonial__av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gold-grad); color: #1a1407; }
.testimonial figcaption strong { display: block; }
.testimonial figcaption small { color: var(--gold-2); }

/* =================================================================
   RECURSOS
   ================================================================= */
.resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.resource { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; text-align: left; transition: transform .3s, border-color .3s; }
.resource:hover { transform: translateY(-5px); border-color: var(--line); }
.resource h3 { font-size: 1.25rem; margin-bottom: 8px; }
.resource p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 18px; }

.reads { border-top: 1px solid var(--line-soft); padding-top: 46px; }
.reads__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 26px; }
.reads__title em { color: var(--gold); font-style: italic; }
.reads__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reads__list li { display: flex; align-items: center; gap: 14px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 600; color: var(--ink-soft); }
.reads__cover { font-size: 1.5rem; }

/* =================================================================
   FAQ
   ================================================================= */
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq__item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; transition: border-color .3s; }
.faq__item[open] { border-color: var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); transition: transform .3s; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 24px; color: var(--ink-soft); }
.faq__a p { max-width: 70ch; }

/* =================================================================
   CTA FINAL
   ================================================================= */
.cta-final { position: relative; z-index: 2; padding-block: clamp(58px, 7vw, 100px); text-align: center; border-top: 1px solid var(--line-soft); background: radial-gradient(80% 120% at 50% 0%, rgba(212,175,55,.1), transparent 60%); }
.cta-final__inner { max-width: 640px; }
.cta-final p { color: var(--ink-soft); margin: 16px 0 32px; font-size: 1.1rem; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__brand p { color: var(--ink-mute); margin-top: 16px; max-width: 320px; font-size: .92rem; }
.footer__nav { display: grid; gap: 12px; align-content: start; }
.footer__nav a { color: var(--ink-soft); font-size: .95rem; }
.footer__nav a:hover { color: var(--gold); }
.footer__contact { display: grid; gap: 12px; align-content: start; }
.footer__contact a { color: var(--gold-2); font-weight: 600; }
.footer__contact small { color: var(--ink-mute); }
.footer__legal { font-size: .78rem; color: var(--ink-mute); border-top: 1px solid var(--line-soft); padding-block: 22px; margin-top: 0; }

/* =================================================================
   WHATSAPP FLOTANTE
   ================================================================= */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 36px -8px rgba(37,211,102,.6);
  transition: transform .25s, box-shadow .25s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: ring 2.4s ease-out infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-deep); }

/* =================================================================
   REVEAL ANIMATION
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   KEYFRAMES
   ================================================================= */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes ring  { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes cue   { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { max-width: 440px; margin-top: 10px; }
  .quote-chip { left: 0; right: auto; top: -14px; max-width: 168px; font-size: .8rem; padding: 9px 13px; }
  .about__inner { grid-template-columns: 1fr; }
  .about .portrait--alt { max-width: 360px; }
  .eco__grid { grid-template-columns: repeat(2, 1fr); }
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .band__item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .band__item:nth-child(odd) { border-left: 0; }
  .testimonials, .resources__grid { grid-template-columns: 1fr 1fr; }
  .reads__list { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(10,10,12,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 8px 0 16px; transform: translateY(-130%); transition: transform .35s ease; margin-left: 0;
  }
  .nav.open .nav__links { transform: none; }
  .nav__links a { padding: 16px clamp(20px, 5vw, 48px); border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .eco__grid, .pillars__grid, .event__learn, .plans__grid, .testimonials, .resources__grid, .reads__list, .faq__list, .footer__inner { grid-template-columns: 1fr; }
  .event__inner { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
  .hero__stats { gap: 24px; }
  .scroll-cue { display: none; }
  .band__grid { grid-template-columns: 1fr 1fr; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

@media (max-width: 420px) {
  .band__grid { grid-template-columns: 1fr; }
  .band__item { border-left: 0 !important; border-bottom: 1px solid var(--line-soft); }
  .hero__stats { width: 100%; justify-content: space-between; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   FOTOS REALES EN RETRATOS (hero / sobre mí)
   ================================================================= */
.portrait__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait--alt .portrait__img { object-position: 50% 30%; }

/* =================================================================
   GALERÍA / CARRUSEL
   ================================================================= */
.gallery { position: relative; z-index: 2; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__sub { margin-inline: auto; }

.carousel { position: relative; margin-top: 8px; }
.carousel__viewport {
  display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
  flex: 0 0 auto; width: min(82%, 340px); scroll-snap-align: center;
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--panel);
}
.carousel__slide img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.carousel__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 18px 16px; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: linear-gradient(to top, rgba(8,8,10,.92), rgba(8,8,10,.45) 55%, transparent);
}
.carousel__cap span { display: block; font-size: .74rem; font-weight: 500; color: var(--gold-2); letter-spacing: .04em; }

.carousel__btn {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,10,12,.78); backdrop-filter: blur(8px); border: 1px solid var(--line);
  color: var(--gold-2); font-size: 1.5rem; line-height: 1; z-index: 4;
  transition: background .25s, transform .25s, border-color .25s;
}
.carousel__btn:hover { background: var(--gold-grad); color: #1a1407; border-color: transparent; }
.carousel__btn--prev { left: -6px; }
.carousel__btn--next { right: -6px; }

.carousel__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.18); transition: background .25s, transform .25s, width .25s;
}
.carousel__dot.is-active { background: var(--gold); width: 26px; border-radius: 6px; }

/* =================================================================
   BIBLIOTECA / LIBROS DESCARGABLES
   ================================================================= */
.library { border-top: 1px solid var(--line-soft); padding-top: clamp(40px, 5vw, 64px); margin-top: clamp(40px, 5vw, 60px); }
.library__head { margin-bottom: 26px; }
.library__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); }
.library__title em { color: var(--gold); font-style: italic; }
.library__lead { color: var(--ink-soft); margin-top: 10px; max-width: 720px; }

.library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }

.book {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.book:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }

/* Portada con imagen real (primera página del PDF) */
.book__cover {
  position: relative; display: block; aspect-ratio: 2/3; overflow: hidden;
  background: #0b0b0d; border-bottom: 1px solid var(--line);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.book:hover .book__cover img { transform: scale(1.045); }

/* Portada estilizada (cuando el PDF no tiene una portada usable) */
.book__cover--styled { display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 24px; background: linear-gradient(155deg, var(--panel-2), #0b0b0d); }
.book__cover--styled::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold-grad); }
.book__cover--styled::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 0%, rgba(212,175,55,.12), transparent 60%); }
.book__cover-title { position: relative; z-index: 1; font-family: var(--serif); font-size: 1.18rem; line-height: 1.25; color: var(--ink); }
.book__cover-title span { display: block; margin-top: 12px; font-family: var(--sans); font-size: .68rem;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }

.book__fmt {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  font-size: .58rem; font-weight: 800; letter-spacing: .08em; color: #1a1407;
  background: var(--gold-grad); padding: 4px 8px; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.45);
}

.book__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.book__cat {
  align-self: flex-start; font-size: .61rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(212,175,55,.1); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 3px;
}
.book__title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.book__author { font-size: .78rem; color: var(--ink-mute); }
.book__desc { font-size: .85rem; color: var(--ink-soft); flex: 1; margin-top: 4px; }
.book__dl { margin-top: 14px; }
.book__dl svg { flex: none; }

.library__note {
  margin-top: 30px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; color: var(--ink-soft); font-size: .86rem; line-height: 1.6;
}
.library__note strong { color: var(--ink); }
.library__note a { color: var(--gold-2); text-decoration: underline; }
.library__note .ico-note { font-size: 1.3rem; line-height: 1; }

/* =================================================================
   PÁGINA LEGAL (términos y condiciones)
   ================================================================= */
.legal-top { position: sticky; top: 0; z-index: 50; background: rgba(10,10,12,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.legal-back:hover { color: var(--gold-2); }

.legal-hero { padding: clamp(34px, 6vw, 60px) 0 clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--line-soft); position: relative; z-index: 2; }
.legal-hero .h2 { margin-top: 10px; }
.legal-hero p { color: var(--ink-soft); margin-top: 14px; max-width: 720px; }
.legal-hero .updated { font-size: .82rem; color: var(--ink-mute); margin-top: 16px; }

.legal-body { padding: clamp(34px, 5vw, 60px) 0 clamp(56px, 7vw, 90px); position: relative; z-index: 2; }
.legal-doc { max-width: 880px; }
.legal-doc h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h2 .legal-num { color: var(--gold); font-size: .9em; margin-right: 8px; }
.legal-doc h3 { font-size: 1.02rem; color: var(--gold-2); margin: 24px 0 8px; }
.legal-doc p { color: var(--ink-soft); margin-bottom: 14px; }
.legal-doc ul { display: grid; gap: 9px; margin: 0 0 18px; }
.legal-doc li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.legal-doc li::before { content: "›"; position: absolute; left: 4px; top: -1px; color: var(--gold); font-weight: 700; }
.legal-doc a { color: var(--gold-2); text-decoration: underline; }
.legal-doc strong { color: var(--ink); }

.legal-callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 18px 22px; margin: 18px 0 24px; }
.legal-callout p:last-child { margin-bottom: 0; }

.legal-toc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 40px; }
.legal-toc strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc li { color: var(--ink-soft); margin-bottom: 7px; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--gold-2); }

/* =================================================================
   RESPONSIVE — nuevas secciones
   ================================================================= */
@media (max-width: 760px) {
  .carousel__slide { width: 80%; }
  .carousel__btn { width: 42px; height: 42px; font-size: 1.3rem; }
  .carousel__btn--prev { left: 2px; }
  .carousel__btn--next { right: 2px; }
  .library__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .book__cover { padding: 15px; }
  .book__title { font-size: 1rem; }
  .book__body { padding: 14px 16px 18px; }
  .book__desc { font-size: .82rem; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 420px) {
  .library__grid { grid-template-columns: 1fr 1fr; }
  .carousel__slide { width: 86%; }
}
