/* ============================================================
   AMAL REHOUNI — Sistema de Diseño "Antigravity" v2 · FINAL
   ============================================================ */

/* ── 0. TOKENS ── */
:root {
  --rose:          #E8C9C1;
  --rose-light:    #F5EAE6;
  --rose-deep:     #C9897A;
  --rose-muted:    #F0DDD8;
  --white:         #FFFFFF;
  --bg:            #FDFCFB;
  --bg-alt:        #FAF7F5;
  --text:          #2A2523;
  --text-mid:      #6B5E59;
  --text-light:    #B0A5A1;
  --border:        #EDE6E3;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.5rem;
  --text-3xl:  3.5rem;
  --text-4xl:  5rem;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 9rem;

  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   28px;
  --r-full: 9999px;

  --sh-xs: 0 2px 8px rgba(90,50,40,.05), 0 1px 3px rgba(90,50,40,.04);
  --sh-sm: 0 4px 16px rgba(90,50,40,.07), 0 2px 6px rgba(90,50,40,.04);
  --sh-md: 0 8px 32px rgba(90,50,40,.09), 0 4px 12px rgba(90,50,40,.05);
  --sh-lg: 0 16px 48px rgba(90,50,40,.11), 0 6px 18px rgba(90,50,40,.06);
  --sh-xl: 0 24px 64px rgba(90,50,40,.13), 0 8px 24px rgba(90,50,40,.07);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.35s;

  --max-w:      1120px;
  --max-narrow: 680px;
  --nav-h:      72px;
}

/* ── 1. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* ── 2. UTILIDADES ── */
.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.section-inner--centered {
  max-width: var(--max-narrow);
  text-align: center;
}

.section-inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

/* ── 3. TIPOGRAFÍA GLOBAL ── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--sp-md);
}
.section-title--centered { margin-inline: auto; }
.section-title em { font-style: italic; color: var(--rose-deep); }

.body-text {
  font-size: var(--text-md);
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: var(--sp-md);
  max-width: 58ch;
}
.body-text--centered { margin-inline: auto; text-align: center; }

/* ── 4. BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: .75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: .06em;
  border: none;
  transition:
    background-color var(--dur) var(--ease),
    box-shadow       var(--dur) var(--ease),
    transform        var(--dur) var(--ease),
    color            var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--lg   { padding: .9rem 2.25rem; font-size: var(--text-base); }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--rose-deep);
  color: var(--white);
  box-shadow: var(--sh-sm);
}
.btn--primary:hover {
  background: var(--text);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--rose-light);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.btn--download {
  background: var(--rose-light);
  color: var(--rose-deep);
  border: 1px solid var(--rose);
  font-weight: 400;
}
.btn--download:hover {
  background: var(--rose);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.btn--buy {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}
.btn--buy:hover {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

/* ── 5. REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 6. NAVEGACIÓN ── */
.nav-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(253,252,251,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.nav-header.scrolled { box-shadow: var(--sh-sm); }

.nav-container {
  max-width: var(--max-w);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: .02em;
  display: flex;
  gap: .3em;
  flex-shrink: 0;
}
.logo-first { color: var(--text); }
.logo-last  { color: var(--rose-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--text-mid);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--rose-deep);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: .45rem 1.1rem !important;
  border-radius: var(--r-full) !important;
  background: var(--rose-light) !important;
  border: 1px solid var(--rose) !important;
  color: var(--rose-deep) !important;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease) !important;
}
.nav-cta:hover { background: var(--rose) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--sp-xs);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text);
  transform-origin: center;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── 7. SECCIÓN BASE ── */
.section { padding-block: var(--sp-3xl); }

/* ── 8. HERO ── */
.section--hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--bg) 55%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-2xl);
}

.hero-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: var(--sp-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5.5vw, var(--text-4xl));
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--sp-md);
}
.hero-title em { font-style: italic; color: var(--rose-deep); }

.hero-subtitle {
  font-size: var(--text-md);
  color: var(--text-mid);
  max-width: 44ch;
  line-height: 1.75;
  margin-bottom: var(--sp-lg);
}

.hero-cta-group {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-image-frame {
  width: 100%;
  max-width: 420px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xl);
}

.hero-image-placeholder {
  aspect-ratio: 3/4;
  background: var(--rose-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  color: var(--rose-deep);
  font-size: var(--text-sm);
  letter-spacing: .06em;
}

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-sm) var(--sp-md);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}
.hero-badge__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--rose-deep);
  line-height: 1;
}
.hero-badge__text {
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.3;
  letter-spacing: .05em;
}

/* ── 9. HISTORIA ── */
.section--historia { background: var(--bg-alt); }

.historia-visual { position: relative; display: flex; justify-content: center; }

.image-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  background: var(--rose-muted);
}
.image-frame--portrait { width: 100%; max-width: 360px; }

.image-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  color: var(--rose-deep);
  font-size: var(--text-sm);
  letter-spacing: .06em;
}

.historia-deco {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--rose-light);
  z-index: -1;
  opacity: .6;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-label {
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--text);
}

/* ── 10. EBOOKS ── */
.section--ebooks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2xl);
}

.ebooks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--sp-lg);
}

.ebook-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ebook-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
}
.ebook-card:nth-child(1) { transition-delay: 0s; }
.ebook-card:nth-child(2) { transition-delay: .08s; }
.ebook-card:nth-child(3) { transition-delay: .16s; }
.ebook-card:nth-child(4) { transition-delay: .24s; }

.ebook-card__cover {
  position: relative;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ebook-card__cover--free { background: var(--rose-light); }
.ebook-card__cover--paid { background: var(--rose-muted); }

.cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: var(--rose-deep);
  opacity: .5;
}

.ebook-badge {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: .06em;
}
.ebook-badge--free { background: var(--rose-deep); color: var(--white); }
.ebook-badge--paid { background: var(--white); color: var(--text); box-shadow: var(--sh-xs); }

.ebook-card__body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex: 1;
}

.ebook-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
}

.ebook-card__desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}

.ebook-card__body .btn { margin-top: auto; align-self: flex-start; }

/* ── 11. COMUNIDAD ── */
.section--comunidad { background: var(--bg-alt); }

.comunidad-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  max-width: 600px;
  margin-inline: auto;
}

.comunidad-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--text-mid);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.comunidad-beneficios {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  text-align: left;
}
.comunidad-beneficios li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--text-sm);
  color: var(--text-mid);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--border);
}
.comunidad-beneficios li:last-child { border-bottom: none; }

.check-icon {
  color: var(--rose-deep);
  font-size: var(--text-xs);
  margin-top: .3em;
  flex-shrink: 0;
}

.comunidad-nota {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  color: var(--text-light);
  text-align: center;
}

/* ── 12. MENTORÍA ── */
.section--mentoria { background: var(--bg); }

.mentoria-header { margin-bottom: var(--sp-2xl); }

.mentoria-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-w);
  margin-inline: auto;
}

.mentoria-card__left {
  padding: var(--sp-2xl);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.mentoria-etiqueta {
  display: inline-flex;
  font-size: var(--text-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-light);
  border: 1px solid var(--rose);
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  align-self: flex-start;
}

.mentoria-titulo {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}

.mentoria-desc {
  font-size: var(--text-md);
  color: var(--text-mid);
  line-height: 1.8;
}

.beneficios-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
}
.beneficios-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--text-base);
  color: var(--text-mid);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border);
}
.beneficios-list li:last-child { border-bottom: none; }

.beneficio-icon {
  color: var(--rose-deep);
  font-size: var(--text-xs);
  margin-top: .3em;
  flex-shrink: 0;
}

.mentoria-card__right {
  padding: var(--sp-2xl);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  justify-content: center;
}

.mentoria-precio-box {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.precio-desde {
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--sp-xs);
}

.precio-valor {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: var(--sp-xs);
}
.precio-valor em { font-style: normal; color: var(--rose-deep); }

.precio-detalle {
  font-size: var(--text-xs);
  color: var(--text-light);
  letter-spacing: .06em;
}

.mentoria-garantia {
  font-size: var(--text-sm);
  color: var(--text-light);
  text-align: center;
  letter-spacing: .06em;
}

.mentoria-testimonial {
  background: var(--white);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  border: 1px solid var(--border);
  margin-top: auto;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: var(--sp-xs);
}

.testimonial-author {
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* ── 13. CITA ── */
.section--quote {
  background: var(--rose-light);
  padding-block: var(--sp-2xl);
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-3xl));
  font-weight: 300;
  color: var(--text);
  line-height: 1.35;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.pull-quote footer { margin-top: var(--sp-md); }
.pull-quote cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* ── 14. FOOTER ── */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding-top: var(--sp-2xl);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  padding-bottom: var(--sp-xl);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand-col { display: flex; flex-direction: column; gap: var(--sp-xs); }

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--white);
}

.footer-tagline {
  font-size: var(--text-xs);
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: center;
}
.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  transition: color var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--rose); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: flex-end;
}
.social-link {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--dur) var(--ease);
}
.social-link:hover { color: var(--rose); }
.social-link span { font-size: var(--text-xs); letter-spacing: .05em; }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-md) var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.3);
  letter-spacing: .05em;
}
.footer-legal { display: flex; gap: var(--sp-md); }
.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.3);
  letter-spacing: .05em;
  transition: color var(--dur) var(--ease);
}
.footer-legal a:hover { color: var(--rose); }

/* ── 15. RESPONSIVE — Tablet ≤ 900px ── */
@media (max-width: 900px) {
  :root {
    --sp-3xl: 6rem;
    --sp-2xl: 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + var(--sp-xl));
  }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin-inline: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { display: none; }

  .section-inner--split { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .historia-visual { order: -1; }
  .historia-deco { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  .ebooks-grid { grid-template-columns: 1fr 1fr; }
  .ebook-card:nth-child(3),
  .ebook-card:nth-child(4) { grid-column: auto; }

  .mentoria-card { grid-template-columns: 1fr; }
  .mentoria-card__left { border-right: none; border-bottom: 1px solid var(--border); }

  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-lg); text-align: center; }
  .footer-social { align-items: center; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ── 16. RESPONSIVE — Móvil ≤ 600px ── */
@media (max-width: 600px) {
  :root {
    --sp-xl:  2.5rem;
    --sp-2xl: 3.5rem;
    --sp-3xl: 5rem;
    --nav-h:  64px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    background: var(--bg);
    flex-direction: column;
    padding: var(--sp-lg);
    gap: var(--sp-md);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: var(--text-base); }
  .nav-cta { align-self: flex-start; }
  .nav-toggle { display: flex; }

  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn--lg { text-align: center; justify-content: center; }

  .ebooks-grid { grid-template-columns: 1fr; }

  .comunidad-card { padding: var(--sp-lg); }

  .mentoria-card__left,
  .mentoria-card__right { padding: var(--sp-lg); }

  .stats-row { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-xs); }
}

/* ── 17. ACCESIBILIDAD ── */
:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* AJUSTE PARA EL HERO SIN FOTO */
.section--hero {
  padding-top: var(--space-4xl); /* Más espacio arriba para que el texto respire */
  padding-bottom: var(--space-4xl); /* Más espacio abajo */
  display: flex;
  justify-content: center; /* Centramos el texto horizontalmente */
  align-items: center; /* Centramos el texto verticalmente */
  text-align: center; /* Centramos el texto */
}

.hero-inner {
  grid-template-columns: 1fr; /* Una sola columna para el texto centrado */
  max-width: 800px; /* Limitamos el ancho para que sea fácil de leer */
}

.hero-visual {
  display: none !important; /* Aseguramos que el bloque visual no se muestre */
}

/* AJUSTE PARA LA FOTO EN MI HISTORIA */
.image-frame-real {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la foto rellene el hueco sin deformarse */
  display: block;
}

/* Centrar el texto cuando no hay foto arriba */
.section--hero {
  padding-top: 120px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-inner {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

/* Ajuste de la foto de la historia */
.image-frame-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px; /* Para que tenga las esquinas suaves como la otra */
}


.hero-image-real, .ebook-cover-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* AJUSTE TARJETA MENTORÍA */
.mentoria-card {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.mentoria-titulo {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.precio-valor {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 15px 0;
}
