/* ============================================================
   site.css — base común de andresacosta (Health & Wealth)
   Única fuente de verdad para tokens y componentes compartidos.
   Reglas: brand/reglas-de-diseno.md. NO copiar este bloque a páginas.
   ============================================================ */

/* ---------- Tokens (3 niveles: root → media → data-theme) ---------- */
:root{
  --ink:#14161A; --ink-soft:#20242B; --cream:#F5F1E8; --paper:#FBF9F3;
  --gold:#B8912E; --gold-soft:#C9A648; --ser:#2F6B4F; --hacer:#3A5E82;
  --gold-text:#856517;
  --ser-text:#2F6B4F; --hacer-text:#3A5E82; --err:#A8443F;
  --text:#20242B; --muted:#5C5F66; --line:#E4DECF; --card:#FFFFFF; --bg:#F5F1E8;
  --hero-bg:#14161A; --hero-text:#F5F1E8; --hero-muted:#A7ABB3;
}
/* Texto sobre fondos siempre oscuros — NO depende del tema */
:root{--on-ink:#F5F1E8; --on-ink-muted:#B9BCC2; --on-ink-dim:#8C9098}
@media (prefers-color-scheme:dark){
  :root{
    --text:#E7E4DA; --muted:#989CA4; --line:#2C313A; --card:#1A1D23;
    --bg:#101216; --paper:#181B21; --cream:#101216;
    --gold:#CFA94C; --gold-soft:#DCBB66; --gold-text:#D9B45E;
    --ser:#4E9270; --hacer:#5E86AE; --ser-text:#7FB89A; --hacer-text:#8FAECB; --err:#D98077;
  }
}
:root[data-theme="dark"]{
  --text:#E7E4DA; --muted:#989CA4; --line:#2C313A; --card:#1A1D23;
  --bg:#101216; --paper:#181B21; --cream:#101216; --gold:#CFA94C; --gold-soft:#DCBB66;
  --gold-text:#D9B45E; --ser:#4E9270; --hacer:#5E86AE;
  --ser-text:#7FB89A; --hacer-text:#8FAECB; --err:#D98077;
}
:root[data-theme="light"]{
  --text:#20242B; --muted:#5C5F66; --line:#E4DECF; --card:#FFFFFF;
  --bg:#F5F1E8; --paper:#FBF9F3; --cream:#F5F1E8; --gold:#B8912E; --gold-soft:#C9A648;
  --gold-text:#856517; --ser:#2F6B4F; --hacer:#3A5E82;
  --ser-text:#2F6B4F; --hacer-text:#3A5E82; --err:#A8443F;
}

/* ---------- Base ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  background:var(--bg); color:var(--text); line-height:1.6;
  -webkit-font-smoothing:antialiased; font-size:17px;
}
.sans{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
h1,h2,h3{font-weight:600; line-height:1.12; letter-spacing:-.01em; text-wrap:balance}
p{max-width:63ch}
a{color:inherit;text-decoration:none}
.wrap{max-width:1080px;margin:0 auto;padding:0 28px}
section{padding:88px 0;scroll-margin-top:80px}
.sec-head{max-width:60ch;margin-bottom:46px}
.sec-head h2{font-size:clamp(28px,3.6vw,40px)}
.sec-head p{color:var(--muted);font-size:18px;margin-top:16px}
.eyebrow{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:12px; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--gold-text); margin-bottom:18px;
}
.eyebrow.ser{color:var(--ser-text)}
.eyebrow.hacer{color:var(--hacer-text)}
@media(max-width:760px){section{padding:56px 0}}

/* ---------- Botones y foco ---------- */
.btn{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;
  padding:13px 24px;border-radius:2px;cursor:pointer;transition:.2s;border:1px solid transparent;
}
.btn-gold{background:var(--gold);color:#14161A}
.btn-gold:hover{background:var(--gold-soft)}
.btn-ghost{border-color:currentColor;color:inherit}
.btn-ghost:hover{background:rgba(184,145,46,.12);border-color:var(--gold)}
.focusable:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px}
.skip{position:absolute;left:-9999px;top:8px;background:var(--gold);color:#14161A;
  padding:10px 16px;border-radius:2px;font-family:-apple-system,sans-serif;font-size:14px;z-index:100}
.skip:focus{left:12px}

/* ---------- Logo (intercambio por tema; especificidad >= .mark img) ---------- */
.mark{display:inline-flex;align-items:center;justify-content:center}
.mark img{width:100%;height:100%;object-fit:contain;display:block}
.mark img.lg-dark{display:none}
@media (prefers-color-scheme:dark){
  .mark img.lg-light{display:none}
  .mark img.lg-dark{display:block}
}
:root[data-theme="dark"] .mark img.lg-light{display:none}
:root[data-theme="dark"] .mark img.lg-dark{display:block}
:root[data-theme="light"] .mark img.lg-light{display:block}
:root[data-theme="light"] .mark img.lg-dark{display:none}

/* ---------- Nav (con estado activo y menú móvil) ---------- */
nav.site{
  position:sticky;top:0;z-index:50;background:var(--bg);background:color-mix(in srgb,var(--bg) 96%,transparent);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:68px;gap:14px}
.brand{display:flex;align-items:center;gap:11px;font-weight:600;font-size:18px;letter-spacing:.01em}
.brand .mark{width:30px;height:34px;flex:none}
.nav-links{display:flex;gap:26px;align-items:center}
.nav-links a{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14.5px;color:var(--muted);transition:.15s}
.nav-links a:hover{color:var(--text)}
.nav-links a.active{color:var(--text);border-bottom:2px solid var(--gold);padding-bottom:2px}
.nav-links a .g-ser{color:var(--ser-text);font-size:11px;margin-right:4px}
.nav-links a .g-hacer{color:var(--hacer-text);font-size:11px;margin-right:4px}
.nav-cta{font-family:-apple-system,sans-serif;font-size:14px;font-weight:600;padding:9px 18px;border:1px solid var(--gold);border-radius:2px;color:var(--gold-text)}
.nav-cta:hover{background:var(--gold);color:#14161A}
.menu-btn{display:none;background:none;border:1px solid var(--line);border-radius:2px;color:var(--text);
  font-family:-apple-system,sans-serif;font-size:14px;font-weight:600;padding:8px 12px;cursor:pointer}
@media(max-width:860px){
  .menu-btn{display:inline-flex;align-items:center;gap:6px}
  .nav-links{
    display:none;position:absolute;top:68px;left:0;right:0;flex-direction:column;align-items:stretch;
    gap:0;background:var(--bg);border-bottom:1px solid var(--line);padding:8px 0;
  }
  nav.site.open .nav-links{display:flex}
  .nav-links a{padding:13px 28px;font-size:16px;border-bottom:1px solid var(--line)}
  .nav-links a:last-child{border-bottom:none}
  .nav-links a.active{border-bottom:1px solid var(--line);color:var(--gold-text)}
  .nav-cta{margin:10px 28px 6px;text-align:center;justify-content:center;display:flex}
  .brand{font-size:16px}
}

/* ---------- Hero de página interior ---------- */
.page-hero{background:var(--hero-bg);color:var(--hero-text);position:relative;overflow:hidden;
  --gold-text:#D9B45E}
.page-hero .wrap{padding-top:72px;padding-bottom:76px}
.page-hero h1{font-size:clamp(34px,4.6vw,54px);color:var(--hero-text);max-width:20ch}
.page-hero h1 em{font-style:italic;color:var(--gold-soft)}
.page-hero .lede{font-size:19px;color:var(--hero-muted);margin:24px 0 32px;max-width:56ch}
.page-hero .crumb{font-family:-apple-system,sans-serif;font-size:13px;color:var(--on-ink-dim);margin-bottom:22px}
.page-hero .crumb a:hover{color:var(--on-ink)}
.page-hero .hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.page-hero .btn-ghost{color:var(--hero-text)}
@media(max-width:760px){.page-hero .wrap{padding-top:52px;padding-bottom:56px}}

/* ---------- Cita destacada del material ---------- */
.frase{font-style:italic;font-size:20px;line-height:1.55;color:var(--text);
  border-left:3px solid var(--gold);padding:4px 0 4px 22px;margin:30px 0;max-width:56ch}
.frase.ser{border-left-color:var(--ser)}
.frase.hacer{border-left-color:var(--hacer)}
.frase small{display:block;font-style:normal;font-family:-apple-system,sans-serif;
  font-size:13px;color:var(--muted);margin-top:10px}

/* ---------- Cards de mentoría ---------- */
.mentorias{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin-top:10px}
.mentoria-card{border-radius:4px;padding:36px 32px;color:#fff;display:flex;flex-direction:column;
  position:relative;overflow:hidden;transition:transform .2s}
.mentoria-card:hover{transform:translateY(-3px)}
.mentoria-card.ser{background:#2C6349}
.mentoria-card.hacer{background:#2F4F6E}
.mentoria-card .tag{font-family:-apple-system,sans-serif;font-size:12px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:#EDF3F0}
.mentoria-card h3{font-size:26px;margin:12px 0 8px;color:#fff}
.mentoria-card .promesa{font-size:17px;font-style:italic;color:#EDF3F0;margin-bottom:20px;line-height:1.5}
.mentoria-card ul{list-style:none;display:flex;flex-direction:column;gap:9px;margin-bottom:26px}
.mentoria-card li{font-family:-apple-system,sans-serif;font-size:14.5px;color:#EDF3F0;
  padding-left:18px;position:relative;line-height:1.45}
.mentoria-card li::before{content:"·";position:absolute;left:2px;font-weight:700;color:var(--gold-soft)}
.mentoria-card .go{font-family:-apple-system,sans-serif;font-size:15px;font-weight:600;color:#fff;
  margin-top:auto;align-self:flex-start;border:1px solid rgba(255,255,255,.55);border-radius:2px;
  padding:11px 20px;transition:.2s}
.mentoria-card .go:hover{background:#fff;color:#20242B}
@media(max-width:760px){.mentorias{grid-template-columns:1fr}}

.mentoria-mini{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);
  border-left:4px solid var(--ser);border-radius:3px;padding:16px 18px;background:var(--card);
  transition:.2s}
.mentoria-mini:hover{border-color:var(--gold);transform:translateX(3px)}
.mentoria-mini.hacer{border-left-color:var(--hacer)}
.mentoria-mini .t{font-family:-apple-system,sans-serif;font-size:11px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ser-text)}
.mentoria-mini.hacer .t{color:var(--hacer-text)}
.mentoria-mini b{font-size:17px}
.mentoria-mini span{font-size:14px;color:var(--muted)}
.mentoria-mini .arrow{font-family:-apple-system,sans-serif;color:var(--gold-text);font-size:14px;font-weight:600}

/* ---------- Temario (acordeón) ---------- */
.temario{border-top:1px solid var(--line);margin-top:8px}
.temario details{border-bottom:1px solid var(--line)}
.temario summary{cursor:pointer;padding:20px 0;font-size:18px;font-weight:600;list-style:none;
  display:flex;gap:16px;align-items:baseline}
.temario summary::-webkit-details-marker{display:none}
.temario summary .num{font-family:-apple-system,sans-serif;font-size:13px;font-weight:700;
  color:var(--gold-text);letter-spacing:.08em;flex:none;min-width:56px;font-variant-numeric:tabular-nums}
.temario.ser summary .num{color:var(--ser-text)}
.temario.hacer summary .num{color:var(--hacer-text)}
.temario summary .cnt{font-family:-apple-system,sans-serif;font-size:13px;color:var(--muted);
  font-weight:400;margin-left:auto;flex:none}
.temario summary::after{content:"+";color:var(--gold-text);font-size:22px;font-weight:400;flex:none;margin-left:14px}
.temario details[open] summary::after{content:"–"}
.temario ol{list-style:none;padding:0 0 24px 72px;display:flex;flex-direction:column;gap:9px}
.temario ol li{font-size:15.5px;color:var(--muted);line-height:1.5}
.temario ol li b{color:var(--text);font-weight:600}
.temario .nota{padding:0 0 24px 72px;font-size:14.5px;color:var(--muted);font-style:italic;max-width:58ch}
@media(max-width:760px){.temario ol,.temario .nota{padding-left:0}}

/* ---------- Puente entre mentorías ---------- */
.puente{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.puente .in{display:grid;grid-template-columns:150px 1fr;gap:38px;align-items:center;padding:56px 28px}
.puente svg{width:100%;height:auto;display:block}
.puente .eyebrow{margin-bottom:10px}
.puente p{font-size:18px;line-height:1.6;max-width:58ch}
.puente .go{font-family:-apple-system,sans-serif;display:inline-block;font-size:15.5px;font-weight:600;
  margin-top:16px;border-bottom:2px solid var(--gold);padding-bottom:2px}
.puente .tres{display:block;font-family:-apple-system,sans-serif;font-size:13px;color:var(--muted);margin-top:14px}
.puente .tres a{border-bottom:1px solid var(--line)}
@media(max-width:760px){.puente .in{grid-template-columns:1fr;gap:20px;padding:44px 28px}.puente svg{max-width:130px}}

/* ---------- Player de video (poster + carga al clic) ---------- */
.player{position:relative;border-radius:4px;overflow:hidden;border:1px solid var(--line);
  background:#14161A;aspect-ratio:16/9;max-width:760px}
.player img{width:100%;height:100%;object-fit:cover;display:block;opacity:.82}
.player .play{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;
  align-items:center;justify-content:center;cursor:pointer;background:none;border:none;width:100%}
.player .play .ico{width:64px;height:64px;border-radius:50%;background:var(--gold);color:#14161A;
  display:flex;align-items:center;justify-content:center;font-size:22px;transition:.2s}
.player .play:hover .ico{transform:scale(1.08)}
.player .play .cap{font-family:-apple-system,sans-serif;font-size:13.5px;color:#F5F1E8;
  background:rgba(20,22,26,.72);padding:6px 14px;border-radius:2px}
.player iframe,.player video{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ---------- La Ruta (6 estaciones, /proposito) ---------- */
.ruta{list-style:none;counter-reset:est;display:flex;flex-direction:column;gap:0;margin-top:8px;position:relative}
.ruta li{counter-increment:est;position:relative;padding:0 0 34px 66px}
.ruta li::before{content:counter(est);position:absolute;left:0;top:-2px;width:40px;height:40px;
  border:2px solid var(--ser);border-radius:50%;color:var(--ser-text);background:var(--card);
  font-family:-apple-system,sans-serif;font-size:16px;font-weight:700;z-index:1;
  display:flex;align-items:center;justify-content:center}
.ruta li::after{content:"";position:absolute;left:19px;top:40px;bottom:0;width:2px;
  background:var(--line)}
.ruta li:last-child::after{display:none}
.ruta li:last-child::before{background:var(--ser);color:#fff}
.ruta b{font-size:18.5px;display:block;margin-bottom:5px}
.ruta p{font-size:15.5px;color:var(--muted);line-height:1.55;max-width:56ch}

/* ---------- Sí / No ---------- */
.nf-list{display:grid;grid-template-columns:1fr 1fr;gap:16px 34px;margin-top:6px}
.nf{display:flex;gap:13px;align-items:flex-start;font-size:16px}
.nf .m{font-family:-apple-system,sans-serif;font-weight:700;flex:none;line-height:1.5}
.nf.no .m{color:var(--err)} .nf.si .m{color:var(--ser-text)}
@media(max-width:760px){.nf-list{grid-template-columns:1fr}}

/* ---------- Testimonios ---------- */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.quotes.two{grid-template-columns:1fr 1fr;max-width:820px}
.quote{background:var(--card);border:1px solid var(--line);border-radius:4px;padding:26px 24px}
.quote p{font-size:16px;line-height:1.6;font-style:italic}
.quote footer{font-family:-apple-system,sans-serif;font-size:13.5px;color:var(--muted);margin-top:16px;
  padding:14px 0 0;border-top:1px solid var(--line);background:none}
@media(max-width:760px){.quotes,.quotes.two{grid-template-columns:1fr}}

/* ---------- FAQ ---------- */
.faq{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;padding:20px 0;font-size:18px;font-weight:600;list-style:none;
  display:flex;justify-content:space-between;gap:20px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--gold-text);font-size:24px;font-weight:400;flex:none;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details p{padding:0 0 22px;color:var(--muted);font-size:16.5px}

/* ---------- Oferta / lista de espera ---------- */
.oferta{background:var(--card);border:1px solid var(--line);border-radius:4px;padding:40px 36px;
  max-width:640px;margin:0 auto;text-align:center}
.oferta .kick{font-family:-apple-system,sans-serif;font-size:12px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--gold-text)}
.oferta h3{font-size:26px;margin:12px 0 6px}
.oferta .precio{font-size:44px;font-weight:600;color:var(--text);margin:14px 0 2px;
  font-variant-numeric:tabular-nums}
.oferta .precio small{font-size:17px;color:var(--muted);font-weight:400}
.oferta .tacha{font-family:-apple-system,sans-serif;font-size:14.5px;color:var(--muted)}
.oferta ul{list-style:none;text-align:left;max-width:420px;margin:22px auto 26px;
  display:flex;flex-direction:column;gap:9px}
.oferta li{font-family:-apple-system,sans-serif;font-size:15px;padding-left:22px;position:relative;line-height:1.5}
.oferta li::before{content:"✓";position:absolute;left:0;color:var(--gold-text);font-weight:700}
.oferta .nota{font-family:-apple-system,sans-serif;font-size:13px;color:var(--muted);margin-top:16px;max-width:46ch;margin-left:auto;margin-right:auto}

/* ---------- Formularios de correo ---------- */
.signup{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:26px}
.signup input{font-family:-apple-system,sans-serif;font-size:15px;padding:13px 16px;border-radius:2px;
  border:1px solid var(--line);background:var(--card);color:var(--text);min-width:270px}
.signup input:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-color:var(--gold)}
.form-note{font-family:-apple-system,sans-serif;font-size:13px;color:var(--muted);margin-top:16px}

/* ---------- CTA final ---------- */
.cta{text-align:center;padding:96px 0}
.cta h2{font-size:clamp(30px,4vw,46px);max-width:22ch;margin:0 auto}
.cta p{color:var(--muted);font-size:19px;margin:20px auto 34px}
.cta-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ---------- Footer ---------- */
footer.site{background:var(--ink);color:var(--on-ink-muted);padding:52px 0 40px;font-family:-apple-system,sans-serif}
.foot{display:flex;justify-content:space-between;gap:34px;flex-wrap:wrap;align-items:flex-start}
.foot .fb{display:flex;align-items:center;gap:10px;color:var(--on-ink);font-weight:600;font-size:16px}
.foot .cols{display:flex;gap:52px;flex-wrap:wrap}
.foot .col{display:flex;flex-direction:column;gap:9px;font-size:14px}
.foot .col b{color:var(--on-ink);font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:4px}
.foot .col a:hover{color:var(--gold-soft)}
.foot .socials{display:flex;gap:20px;font-size:14px}
.foot .socials a:hover{color:var(--gold-soft)}
footer.site .legal{font-size:12.5px;color:var(--on-ink-dim);margin-top:30px;max-width:74ch;line-height:1.6}

/* ---------- Toggle de tema ---------- */
.theme-tgl{position:fixed;bottom:20px;right:20px;z-index:60;width:42px;height:42px;border-radius:50%;
  border:1px solid var(--line);background:var(--card);color:var(--text);cursor:pointer;font-size:17px;
  display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
