/* ===================================================================
   Valor Incondicional — Recovery Coaching
   Paleta: negro + dorado, tomada del logotipo real del cliente (círculo
   negro, "V" dorada, corona y laurel dorados) — no se ha inventado marca.
   Tipografía: Playfair Display (titulares, con carácter) + Jost (cuerpo).
   =================================================================== */

:root {
  --ink: #0d0d0c;
  --ink-2: #17160f;
  --ink-soft: #2c2a24;
  --slate: #5a564d;
  --gold: #c9a24b;
  --gold-light: #e4c880;
  --gold-dark: #9c7a2f;
  --cream: #f7f3e9;
  --cream-2: #efe8d6;
  --paper: #fffdf8;
  --paper-2: #f6f1e6;
  --white: #ffffff;
  --green: #1e7a4c;
  --green-50: #e9f5ee;
  --red: #a93226;
  --red-50: #fbeae7;
  --border: rgba(13, 13, 12, 0.12);
  --border-soft: rgba(13, 13, 12, 0.08);
  --border-gold: rgba(201, 162, 75, 0.35);
  --shadow-sm: 0 2px 10px rgba(13, 13, 12, 0.08);
  --shadow-md: 0 10px 34px rgba(13, 13, 12, 0.18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --radius-lg: 22px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; margin-bottom: 8px; }
p { margin: 0 0 16px; color: var(--slate); }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* Aparición suave al hacer scroll (IntersectionObserver en main.js).
   Sin JS (o si falla), .reveal se queda en su estado final visible gracias
   a .no-js en <html>, así el contenido nunca depende de que el script cargue. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
html.no-js .reveal { opacity: 1; transform: none; }

.section-dark { background: var(--ink); color: rgba(247, 243, 233, 0.88); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p { color: rgba(247, 243, 233, 0.72); }
.section-soft { background: var(--paper-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .eyebrow::before { background: var(--gold); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Fondo sólido a propósito: backdrop-filter en un ancestro crea un containing
     block para los hijos position:fixed (como el menú móvil), que quedarían
     encajados en la altura de esta cabecera en vez de cubrir toda la pantalla. */
  background: var(--ink);
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.brand-logo-footer { height: 40px; width: 40px; }
.brand-text { font-family: var(--font-head); color: var(--cream); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.03em; line-height: 1.2; }
.brand-text small { display: block; font-family: var(--font-sans); color: var(--gold-light); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(247, 243, 233, 0.78);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav-cta { margin-left: 4px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .brand-text { display: none; }
  .main-nav {
    position: fixed;
    inset: 82px 0 0 0;
    background: var(--ink);
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid rgba(201, 162, 75, 0.14); }
  .nav-cta { margin: 16px 0 0; display: inline-flex; }
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 15px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 720px) { .mobile-sticky-cta { display: block; } body { padding-bottom: 78px; } }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 90px;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(201,162,75,0.22) 0%, rgba(201,162,75,0) 70%);
}
.hero::before { width: 560px; height: 560px; top: -220px; left: -160px; }
.hero::after { width: 420px; height: 420px; bottom: -180px; right: 10%; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .accent { color: var(--gold-light); font-family: var(--font-head); font-style: italic; display: block; }
.hero-sub { font-size: 1.08rem; color: rgba(247, 243, 233, 0.78); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  border: 1px solid rgba(201, 162, 75, 0.25);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ink), 0 0 40px rgba(201, 162, 75, 0.45);
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
  .hero-badge { width: 92px; height: 92px; right: -12px; bottom: -12px; }
}

/* Barra de confianza, bajo el hero */
.stats-bar { background: var(--ink-2); border-top: 1px solid rgba(201,162,75,0.14); border-bottom: 1px solid rgba(201,162,75,0.14); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--gold-light); display: block; margin-bottom: 4px; }
.stat-label { font-size: 0.86rem; color: rgba(247,243,233,0.68); }
.stats-grid > div { border-right: 1px solid rgba(201,162,75,0.14); }
.stats-grid > div:last-child { border-right: none; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr; gap: 20px; } .stats-grid > div { border-right: none; border-bottom: 1px solid rgba(201,162,75,0.14); padding-bottom: 16px; } .stats-grid > div:last-child { border-bottom: none; padding-bottom: 0; } }

/* Sobre mí */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-grid p strong { color: var(--ink); }
.quote-card {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
}
.quote-card .quote-mark { font-family: var(--font-head); font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.quote-card blockquote { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--ink); margin: 0 0 18px; }
.quote-card cite { font-style: normal; font-size: 0.86rem; color: var(--slate); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Cards genéricas */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.section-dark .card {
  background: rgba(247, 243, 233, 0.04);
  border: 1px solid rgba(201, 162, 75, 0.2);
  box-shadow: none;
}
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(201, 162, 75, 0.14); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem; margin-bottom: 18px;
}
.icon-circle svg { width: 24px; height: 24px; stroke: var(--gold-light); fill: none; }

/* Qué es el Recovery Coaching — comparativa en dos columnas */
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.concept-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.concept-col ul { margin-top: 12px; }
.concept-col li { position: relative; padding: 9px 0 9px 26px; font-size: 0.94rem; color: var(--slate); border-bottom: 1px solid var(--border-soft); }
.concept-col li::before { position: absolute; left: 0; top: 9px; font-weight: 700; }
.concept-col.is-not li::before { content: '–'; color: var(--slate); }
.concept-col.is-is li::before { content: '✓'; color: var(--gold-dark); }
.concept-note { font-size: 0.86rem; background: var(--paper-2); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; }
@media (max-width: 860px) { .concept-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ¿Es esto para ti? — checklist */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.fit-item { display: flex; gap: 14px; align-items: flex-start; }
.fit-item .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(201,162,75,0.16); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.fit-item .check svg { width: 14px; height: 14px; stroke: var(--gold-light); fill: none; }
.fit-item p { margin: 0; color: rgba(247,243,233,0.82); font-size: 0.98rem; }
@media (max-width: 720px) { .fit-grid { grid-template-columns: 1fr; } }

/* Qué esperar de la primera sesión */
.session-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: center; }
.session-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/5; }
.session-photo img { width: 100%; height: 100%; object-fit: cover; }
.session-list { margin-top: 20px; }
.session-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.session-list li:last-child { border-bottom: none; }
.session-list strong { display: block; color: var(--ink); font-size: 0.96rem; margin-bottom: 2px; }
.session-list span { font-size: 0.88rem; color: var(--slate); }
@media (max-width: 920px) { .session-grid { grid-template-columns: 1fr; } .session-photo { order: -1; max-width: 360px; margin: 0 auto; } }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; font-family: var(--font-head); font-weight: 700;
  color: var(--ink); font-size: 1.05rem; background: none; border: none; width: 100%; text-align: left;
}
.faq-question .faq-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-question .faq-icon::before, .faq-question .faq-icon::after {
  content: ''; position: absolute; background: var(--gold-dark); border-radius: 2px; transition: transform 0.2s ease;
}
.faq-question .faq-icon::before { width: 14px; height: 2px; top: 10px; left: 4px; }
.faq-question .faq-icon::after { width: 2px; height: 14px; top: 4px; left: 10px; }
.faq-item.open .faq-question .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 4px 20px; margin: 0; }

/* Metodología — pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 18px;
}
.step-arrow { position: absolute; top: 20px; right: -22px; color: var(--gold); font-size: 1.3rem; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .step-arrow { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.contact-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }
.contact-meta { display: flex; align-items: flex-start; gap: 12px; }
.contact-meta + .contact-meta { margin-top: 14px; }
.contact-meta .icon-circle { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 1.1rem; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } .contact-photo { order: -1; max-width: 360px; margin: 0 auto; } }

/* Formularios */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.section-dark label { color: var(--cream); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.96rem; color: var(--ink); background: var(--white);
}
.section-dark input, .section-dark textarea {
  background: rgba(247, 243, 233, 0.06); border-color: rgba(201, 162, 75, 0.3); color: var(--cream);
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 100px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--slate); }
.section-dark .checkbox-row { color: rgba(247, 243, 233, 0.72); }
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--gold-light); text-decoration: underline; }
.alert { padding: 16px 18px; border-radius: 10px; margin-bottom: 24px; font-size: 0.94rem; }
.alert-ok { background: var(--green-50); color: var(--green); }
.alert-error { background: var(--red-50); color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(247, 243, 233, 0.7); padding: 64px 0 24px; border-top: 1px solid rgba(201, 162, 75, 0.18); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: var(--gold-light); margin-bottom: 14px; font-size: 0.95rem; }
.site-footer p { color: rgba(247, 243, 233, 0.6); }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(201, 162, 75, 0.14);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(247, 243, 233, 0.5);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Entorno local / preview */
body.es-local::before {
  content: "LOCAL — sin indexar";
  position: fixed; bottom: 0; left: 0; z-index: 999;
  background: #000; color: #fff; font-size: 0.7rem; padding: 3px 10px;
  opacity: 0.6;
}
.preview-notice {
  background: #4a2b7a; color: #fff; text-align: center;
  font-size: 0.82rem; padding: 8px 16px;
}
.preview-notice strong { font-weight: 700; }
