/* ============================================================
   REBE BUSTAMANTE · rebebcr.com — Design System
   Navy = base · Gold = luxury accent · Serif headlines + Sans body
   Reusable across the three pages of the site.
   ============================================================ */

:root {
  /* Navy scale */
  --navy-950: #060F1C;
  --navy-900: #081424;
  --navy-800: #0A1A2F;
  --navy-700: #0D2240;
  --navy-600: #133054;

  /* Gold (acento de lujo — nunca rellenos grandes) */
  --gold: #C9A227;
  --gold-bright: #D4AF37;
  --gold-soft: rgba(201, 162, 39, 0.35);
  --gold-faint: rgba(201, 162, 39, 0.12);

  /* Text */
  --cream: #F4F1EA;
  --cream-dim: rgba(244, 241, 234, 0.72);
  --cream-faint: rgba(244, 241, 234, 0.45);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;

  /* Rhythm */
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --container: 1140px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-weight: 600; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.18;
  margin-bottom: 1.4rem;
}

h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.35; }

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

p { max-width: 65ch; }
.center p { margin-inline: auto; }

/* ---------- Gold details ---------- */
.gold-line {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin: 1.6rem 0;
}

.gold-divider {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 1.6rem auto;
  opacity: 0.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.7rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
}
.btn-gold:hover {
  background: var(--gold-bright);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold-soft);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.05rem 2.2rem; font-size: 0.9rem; }

/* enlace inline dentro de texto (a sitios externos) */
.inline-link {
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold-soft);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.inline-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.text-link:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav-wrap.scrolled {
  background: rgba(8, 20, 36, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 var(--gold-faint), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.nav-brand { display: inline-flex; align-items: center; }
.nav-logo {
  height: 64px;
  width: auto;
  display: block;
  transition: height 0.4s ease;
}
.nav-wrap.scrolled .nav-logo { height: 50px; }
@media (max-width: 600px) {
  .nav-logo { height: 52px; }
  .nav-wrap.scrolled .nav-logo { height: 44px; }
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a.is-active { color: var(--cream); }
.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-cta { padding: 0.6rem 1.3rem; font-size: 0.76rem; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
  }
  .nav-toggle span {
    width: 24px; height: 1.5px;
    background: var(--gold);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.4rem;
    background: rgba(6, 15, 28, 0.97);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { font-size: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--navy-800); }
.section-quote { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--navy-950); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  /* fondo "estudio" negro que coincide con el fondo de la foto B&N:
     un sutil halo de luz detrás de Rebe (derecha) que se funde a negro,
     para que la foto se sienta extendida por toda la sección */
  background:
    radial-gradient(75% 85% at 70% 42%, #1d1d1d 0%, #0c0c0c 50%, #000 100%),
    #000;
  position: relative;
  overflow: hidden;
}
/* sutil brillo dorado vivo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(201, 162, 39, 0.05) 50%, transparent 58%);
  background-size: 240% 240%;
  animation: sheen 11s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 100% { background-position: 10% 0%; }
  50% { background-position: 90% 100%; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-positioning {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--cream-dim);
  max-width: 32ch;
  margin-top: 0.4rem;
}

.hero-sub {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--gold-bright);
  margin-top: 1.4rem;
}

.hero-actions { margin-top: 2.4rem; }

/* draw-in de la línea dorada del hero */
.gold-line.draw {
  width: 0;
  animation: drawLine 1.1s ease 0.5s forwards;
}
@keyframes drawLine { to { width: 90px; } }

/* ---------- Placeholders de imagen ---------- */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px dashed var(--gold-soft);
  background:
    linear-gradient(160deg, rgba(19, 48, 84, 0.35), rgba(8, 20, 36, 0.6));
  border-radius: 2px;
  text-align: center;
  padding: 1rem;
}
.ph-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream-faint);
}
.ph-dims {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.portrait-ph { aspect-ratio: 4 / 5; width: 100%; }
/* foto real de retrato (sustituye al placeholder) */
.portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  /* desvanecido SUAVE en los 4 bordes: apenas una caricia que disuelve el borde,
     para que la foto no se vea "pegada" — pero solo en su lado, nunca tras el texto */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right,  transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-composite: intersect;
}
.cred-portrait .portrait-img { max-width: 360px; }

/* retrato circular del contacto */
.round-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  margin: 0 auto 2.4rem;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 0 0 6px rgba(201,162,39,0.06);
}

/* portada del libro */
.book-img {
  width: min(320px, 80%);
  margin-inline: auto;
  border-radius: 2px;
  display: block;
  box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}

/* el retrato del hero se funde más generosamente con el fondo negro (efecto "extendido") */
.hero-portrait .portrait-img {
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 20%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right,  transparent 0, #000 20%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}

/* retratos del rail del manifiesto: llenan la columna a lo alto */
.manifesto-rail .portrait-img {
  flex: 1 1 0;
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
}
.book-ph { aspect-ratio: 2 / 3; width: min(320px, 80%); margin-inline: auto; }
.wide-ph { aspect-ratio: 16 / 9; width: 100%; }
.card-ph { aspect-ratio: 16 / 10; width: 100%; border: none; border-radius: 0; }
.gallery-ph { aspect-ratio: 3 / 2; width: 100%; }
.round-ph {
  aspect-ratio: 1 / 1;
  width: 132px;
  border-radius: 50%;
  margin: 0 auto 2.4rem;
}
.round-ph .ph-label { font-size: 0.9rem; }
.round-ph .ph-dims { font-size: 0.6rem; }

/* imagen apaisada dentro de una sección */
.section-img { margin: 2.8rem 0 0.4rem; }
.section-img .wide-ph::after,
.gallery-ph::after { content: ""; }

/* ---------- Retrato junto a credenciales ---------- */
.cred-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 3.5rem;
}
.cred-layout .credentials { margin-top: 0; }
.cred-portrait .portrait-ph { max-width: 360px; }
@media (max-width: 820px) {
  .cred-layout { grid-template-columns: 1fr; }
  .cred-portrait { max-width: 360px; margin-inline: auto; }
}

/* ---------- Galería "En escena" ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.gallery-ph { transition: transform 0.4s ease, border-color 0.4s ease; }
.gallery-ph:hover { transform: translateY(-4px); border-color: var(--gold); }
/* fotos reales de conferencia (se recortan para mantener a Rebe en cuadro) */
.gallery-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-img:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,0.4); }

/* ---------- Qué hace: texto a la izquierda, imagen (más pequeña) a la derecha ---------- */
.quehace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.quehace-media { position: sticky; top: 6rem; }
.quehace-img {
  width: 100%;
  border-radius: 2px;
  display: block;
  border: 1px solid var(--gold-faint);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
@media (max-width: 900px) {
  .quehace-layout { grid-template-columns: 1fr; }
  .quehace-media { position: static; max-width: 520px; margin: 0.5rem auto 0; }
}

.hero-portrait { position: relative; }

/* gráfico de acreditación (se muestra completo, no recortado) */
.cred-graphic {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 3px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
}

/* ---------- Banda de atmósfera (imagen a sangre que se funde con el fondo) ---------- */
.atmos-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(5rem, 12vw, 8.5rem) 0;
}
.atmos-band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.atmos-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.74), rgba(8, 20, 36, 0.86));
}
.atmos-band > .container { position: relative; z-index: 2; }

/* sangrado lateral reutilizable: imagen llena un lado y se desvanece hacia el texto */
.side-atmos { position: relative; overflow: hidden; }
.side-atmos > .container { position: relative; z-index: 2; }
.side-atmos-media {
  position: absolute;
  top: 0; bottom: 0;
  width: 56%;
  z-index: 1;
  pointer-events: none;
}
.side-atmos-media.right { right: 0; }
.side-atmos-media.left { left: 0; }
.side-atmos-media img, .side-atmos-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-atmos-media.right { -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 88%); mask-image: linear-gradient(to left, #000 20%, transparent 88%); }
.side-atmos-media.left  { -webkit-mask-image: linear-gradient(to right, #000 20%, transparent 88%); mask-image: linear-gradient(to right, #000 20%, transparent 88%); }
.side-atmos-ph {
  background:
    radial-gradient(90% 80% at 72% 26%, rgba(201, 162, 39, 0.14), transparent 58%),
    linear-gradient(150deg, var(--navy-700), var(--navy-950));
}
.side-atmos-copy { max-width: 50%; }
.side-atmos.media-right .side-atmos-copy { margin-right: auto; }
.side-atmos.media-left  .side-atmos-copy { margin-left: auto; }
@media (max-width: 900px) {
  .side-atmos-media { width: 100%; opacity: 0.2; }
  .side-atmos-media.right, .side-atmos-media.left {
    -webkit-mask-image: linear-gradient(to top, #000 18%, transparent 92%);
            mask-image: linear-gradient(to top, #000 18%, transparent 92%);
  }
  .side-atmos-copy { max-width: 100%; }
}

/* ---------- Pull-quotes ---------- */
.pull-quote {
  position: relative;
  margin: 2.8rem 0 0;
  padding-left: 1.8rem;
  border-left: 2px solid var(--gold);
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  color: var(--cream);
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.pull-quote.centered {
  border-left: none;
  padding-left: 0;
  margin-bottom: 3rem;
}
.pull-quote.centered::before {
  content: "“";
  display: block;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.inline-quote {
  margin-top: 1.6rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
}
.inline-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-bright);
  line-height: 1.5;
}

.big-quote { text-align: center; position: relative; }
.big-quote::before {
  content: "“";
  display: block;
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.55;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.big-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.5;
  color: var(--cream);
  margin-inline: auto;
  max-width: 24em;
}

/* ---------- Manifesto ---------- */
.manifesto { background: var(--navy-800); }
.manifesto-lines {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.45;
}
.manifesto-lines em { color: var(--gold-bright); font-style: italic; }
.manifesto-body {
  margin-top: 1.8rem;
  font-size: 1.06rem;
  color: var(--cream-dim);
  max-width: 62ch;
}
.manifesto-body em { color: var(--gold-bright); font-style: italic; }
.manifesto-close {
  margin-top: 2.2rem;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  color: var(--gold-bright);
}
.manifesto-despertar {
  margin-top: 2.2rem;
  padding-left: 1.8rem;
  border-left: 2px solid var(--gold);
}
.manifesto-despertar .md-lead {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--cream);
  margin-bottom: 1.1rem;
}
.manifesto-despertar ul { display: grid; gap: 0.8rem; }
.manifesto-despertar li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.04rem;
  color: var(--cream-dim);
  max-width: 60ch;
}
.manifesto-despertar li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.8rem;
  color: var(--gold);
}
.manifesto-despertar strong { color: var(--gold-bright); font-weight: 600; }

/* manifiesto en dos columnas: texto + rail de 2 retratos grandes a la derecha */
.manifesto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.manifesto-text { max-width: 720px; }
.manifesto-rail {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;            /* juntos, separación mínima */
}
.manifesto-rail .portrait-ph {
  width: 100%;
  flex: 1 1 0;            /* crecen para llenar TODO el alto del texto */
  aspect-ratio: auto;     /* anula 4/5: las imágenes llenan su lado */
  min-height: 0;
}
@media (max-width: 860px) {
  .manifesto-layout { grid-template-columns: 1fr; }
  .manifesto-rail {
    flex-direction: row;
    max-width: 620px;
    margin-top: 2.4rem;
  }
  .manifesto-rail .portrait-ph,
  .manifesto-rail .portrait-img { aspect-ratio: 4 / 5; height: auto; }
}
@media (max-width: 480px) {
  .manifesto-rail { flex-direction: column; max-width: 360px; margin-inline: auto; }
}

/* lead paragraph bajo un título de sección */
.section-lead {
  margin-top: -0.4rem;
  font-size: 1.08rem;
  color: var(--cream-dim);
  max-width: 64ch;
}
.section-lead em { color: var(--gold-bright); font-style: italic; }

/* ---------- Ruta M.A.R.I.P.O.S.A ---------- */
.mariposa {
  margin-top: 4rem;
  border-top: 1px solid var(--gold-faint);
  padding-top: 3rem;
}
.mariposa-head h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.mariposa-intro { font-size: 1.02rem; color: var(--cream-dim); max-width: 68ch; }
.mariposa-steps {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2.6rem;
  counter-reset: m;
}
.mariposa-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.07);
}
.m-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  flex: 0 0 auto;
  width: 1.5em;
  text-align: center;
}
.m-body h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.m-body p { font-size: 0.92rem; color: var(--cream-dim); }

@media (max-width: 720px) {
  .mariposa-steps { grid-template-columns: 1fr; gap: 0; }
  .m-letter { font-size: 2.2rem; }
}

/* ---------- Split (quién es / libro) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.libro .split { grid-template-columns: 1.15fr 0.85fr; }

/* ---------- Qué hace ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.card {
  background: linear-gradient(165deg, var(--navy-700), var(--navy-800));
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-top: 2px solid var(--gold-soft);
  border-radius: 2px;
  padding: 1.9rem 1.6rem;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-top-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 0.9rem;
}
.card h3 { margin-bottom: 0.7rem; font-weight: 600; }
.card p { font-size: 0.92rem; color: var(--cream-dim); }

.offer-thread {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--gold-bright);
}

.philosophy { margin-top: 3.5rem; }
.philosophy h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.backdrop-note {
  margin-top: 3rem;
  font-size: 0.92rem;
  color: rgba(244, 241, 234, 0.62);
  border-top: 1px solid var(--gold-faint);
  padding-top: 1.6rem;
  max-width: 70ch;
}

/* ---------- Programas ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.program-media { width: 100%; }
.program-media .card-ph { border-bottom: 1px solid var(--gold-faint); }
.program-body { padding: 1.9rem 1.8rem 2.1rem; }
.program-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.program-card:hover { transform: translateY(-5px); border-color: var(--gold-soft); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.program-card:hover::before { transform: scaleX(1); }
.program-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.program-card p { font-size: 0.92rem; color: var(--cream-dim); }
.card-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Trayectoria ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.stat {
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-bottom: 2px solid var(--gold-soft);
  border-radius: 2px;
  padding: 2rem 1.6rem;
  background: linear-gradient(180deg, rgba(13, 34, 64, 0.45), transparent);
  transition: border-color 0.4s ease;
}
.stat:hover { border-bottom-color: var(--gold); }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.stat-label { font-size: 0.88rem; color: var(--cream-dim); line-height: 1.55; display: block; }

.refs-line {
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream-dim);
}

.credentials { margin-top: 3.5rem; }
.credentials h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}
.cred-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.85rem 2.5rem;
}
.cred-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  color: var(--cream-dim);
}
.cred-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.accreditation {
  margin-top: 3rem;
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  padding: 1.8rem 2rem;
  background: var(--gold-faint);
}
.accr-org {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-bright);
}
.accr-titles {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* ---------- Medios ---------- */
.media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.media-item {
  text-align: center;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 2px;
  padding: 2rem 1.4rem;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.media-item:hover { border-color: var(--gold-soft); transform: translateY(-4px); }
.media-kind {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.media-name {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.35;
  display: block;
}

/* ---------- Testimonios (estructura lista — activar al tener citas reales) ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.testimonial-card {
  background: var(--navy-900);
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  padding: 2rem 1.8rem;
}
.testimonial-card blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
}
.testimonial-card figcaption { margin-top: 1.4rem; }
.testimonial-card figcaption strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.testimonial-card figcaption span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* testimonios en video (verticales) */
.testimonial-video {
  background: var(--navy-900);
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-video:hover {
  border-color: var(--gold-soft);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.testimonial-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  display: block;
}
.testimonial-video figcaption {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.95rem;
}

/* testimonios en video (verticales) */
.testimonial-video {
  background: var(--navy-900);
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-top: 2px solid var(--gold-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-video:hover {
  transform: translateY(-5px);
  border-top-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.testimonial-video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  display: block;
}
.testimonial-video figcaption {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.9rem;
}

/* ---------- Contacto ---------- */
.contacto {
  background:
    radial-gradient(800px 500px at 50% 110%, rgba(19, 48, 84, 0.6), transparent 70%),
    var(--navy-950);
}
.contact-lead { font-size: 1.1rem; color: var(--cream-dim); margin-top: -0.4rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.contact-detail {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--cream-faint);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  border-top: 1px solid var(--gold-faint);
  padding: 3.5rem 0 2.5rem;
}
.footer-logo { height: 92px; width: auto; margin: 0 auto; }
@media (max-width: 600px) { .footer-logo { height: 72px; } }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 1.4rem;
}
.footer-social a {
  color: var(--cream-faint);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
}
.footer-social a:hover { color: var(--gold-bright); transform: translateY(-3px); }
.footer-copy { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--cream-faint); }

/* ---------- Scroll-reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .gold-line.draw { width: 90px; animation: none; }
  .hero::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 7rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 420px; }

  .split, .libro .split { grid-template-columns: 1fr; }
  .split-media { max-width: 420px; margin-inline: auto; }
  .quien-es .split-media { order: 2; }
}
