/* ============================================================
   ANDRÉS HERNÁNDEZ — Marca Personal
   Paleta: azul marino profundo + acento periwinkle (luz azul suave)
   (las fotos cálidas contrastan con el azul; luz suave, no neón)
   ============================================================ */

:root {
  --bg: #0a0f1c;
  --bg-soft: #0e1524;
  --bg-card: #131c2e;
  --surface: #1d2942;
  --line: rgba(107, 134, 214, 0.16);
  --accent: #6b86d6;
  --accent-bright: #9db3ec;
  --accent-deep: #4b63b5;
  --cool: #6d8cb8;
  --cream: #eef2fb;
  --text: #dde4f4;
  --text-dim: #97a3c0;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Textura de grano sutil sobre todo el sitio */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Barra de progreso de scroll ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
  z-index: 200;
  box-shadow: 0 0 14px rgba(107, 134, 214, 0.6);
}

/* ---------- Tipografía base ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.14; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--cream); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-title { margin-bottom: 0.8rem; }
.section-sub { color: var(--text-dim); max-width: 560px; margin-bottom: 3rem; }
.text-accent { color: var(--accent-bright); }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--left { transform: translateX(-40px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--right { transform: translateX(40px); }
.reveal--right.is-visible { transform: translateX(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* Revelado de texto por líneas (hero) */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero.is-in .line-mask > span { transform: translateY(0); }
.hero.is-in .line-mask:nth-child(2) > span { transition-delay: 0.12s; }
.hero.is-in .line-mask:nth-child(3) > span { transition-delay: 0.24s; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 2rem;
  border-radius: 3px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn--lg { padding: 1.15rem 2.4rem; font-size: 0.8rem; }
.btn--primary { background: var(--accent); color: #ffffff; box-shadow: 0 10px 34px rgba(107, 134, 214, 0.28); }
.btn--primary:hover { background: var(--accent-bright); color: #0a0f1c; transform: translateY(-3px); box-shadow: 0 18px 48px rgba(107, 134, 214, 0.45); }
.btn--ghost { border: 1px solid rgba(238, 242, 251, 0.24); color: var(--cream); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-3px); }
.btn__arrow { display: inline-block; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- Navegación ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease; }
.nav.is-scrolled { background: rgba(10, 15, 28, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { max-width: 1240px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 96px; opacity: 0.96; transition: height 0.4s ease; display: block; }
.nav.is-scrolled .nav__logo img { height: 72px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 400; transition: color 0.3s ease; }
.nav__links a:hover { color: var(--accent-bright); }
.nav__links a.nav__cta { border: 1px solid var(--accent); color: var(--accent-bright); padding: 0.6rem 1.3rem; border-radius: 3px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 600; }
.nav__links a.nav__cta:hover { background: var(--accent); color: #ffffff; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; z-index: 101; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 150px 24px 90px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 850px; height: 850px;
  top: -280px; right: -180px;
  background: radial-gradient(circle, rgba(75, 99, 181, 0.22) 0%, transparent 62%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.hero__content { position: relative; z-index: 3; }
.hero__eyebrow { font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem; font-weight: 500; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.6rem); color: var(--cream); }
.hero__title-accent { font-style: italic; color: var(--accent-bright); }
.hero__sub { max-width: 500px; margin: 1.8rem 0 2.6rem; color: var(--text-dim); font-size: 1.08rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Foto del hero */
.hero__photo { position: relative; z-index: 2; justify-self: center; }
.hero__photo-frame {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 15, 28, 0.5)); }
.hero__photo-ring { position: absolute; inset: -14px; border: 1px solid rgba(107, 134, 214, 0.25); border-radius: 26px; z-index: -1; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero__scroll span { display: block; width: 1px; height: 54px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.2; transform: scaleY(0.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Figura dinámica (separador sutil) ---------- */
.figura {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 24px;
}
/* línea fina que se desvanece hacia los lados */
.figura::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 134, 214, 0.2) 26%, rgba(107, 134, 214, 0.2) 74%, transparent);
}
.figura__wrap {
  position: relative;
  z-index: 1;
  width: 86px; height: 86px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border-radius: 50%;
}
.figura__svg { width: 86px; height: 86px; overflow: visible; }

.figura .ring { fill: none; stroke-width: 1; transform-origin: 100px 100px; }
.ring--1 { stroke: rgba(107, 134, 214, 0.38); stroke-dasharray: 6 11; animation: spin 28s linear infinite; }
.ring--2 { stroke: rgba(157, 179, 236, 0.3); stroke-dasharray: 3 9; animation: spin 19s linear infinite reverse; }
.ring--3 { stroke: rgba(107, 134, 214, 0.5); stroke-dasharray: 2 6; animation: spin 13s linear infinite; }

.orbit { transform-origin: 100px 100px; }
.orbit--a { animation: spin 15s linear infinite; }
.orbit--b { animation: spin 10s linear infinite reverse; }
.orbit--c { animation: spin 7s linear infinite; }

.node { fill: var(--accent-bright); filter: drop-shadow(0 0 7px rgba(157, 179, 236, 0.95)); }
.node--sm { fill: var(--accent); }
.core {
  fill: var(--accent-bright);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 12px rgba(157, 179, 236, 0.8));
  animation: pulseCore 3.6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseCore {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ---------- Métricas ---------- */
.metrics { padding: 110px 0; }
.metrics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.metric { padding: 0 2.4rem; border-left: 1px solid var(--line); }
.metric:first-child { border-left: none; padding-left: 0; }
.metric__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.metric__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.7rem); color: var(--cream); line-height: 1; margin-bottom: 0.9rem; }
.metric p { color: var(--text-dim); font-size: 0.95rem; max-width: 300px; }

/* ---------- Video / Reel ---------- */
.video { padding: 130px 0; }
.video__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4.5rem; align-items: center; }
.video__frame {
  position: relative;
  z-index: 5; /* por encima de las brasas (#embers, z-index 3) */
  justify-self: center;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(0, 0, 0, 0.35);
  background: var(--bg-card);
}
.video__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__sound {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.6);
  backdrop-filter: blur(8px);
  color: var(--cream);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.video__sound:hover { transform: scale(1.08); background: rgba(107, 134, 214, 0.3); }
.video__copy h2 { margin-bottom: 1.3rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.video__copy h2 em { color: var(--accent-bright); font-style: italic; }
.video__copy > p { color: var(--text-dim); margin-bottom: 1.8rem; max-width: 460px; }

/* ---------- Manifiesto ---------- */
.manifesto { padding: 120px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); text-align: center; }
.manifesto__text { font-family: var(--font-display); font-size: clamp(1.7rem, 4.4vw, 3.1rem); color: var(--cream); max-width: 900px; margin: 0 auto; line-height: 1.3; }
.manifesto__text em { color: var(--accent-bright); }

/* ---------- Sobre mí (con foto de setup en parallax) ---------- */
.sobre { padding: 130px 0; }
.sobre__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sobre__media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); aspect-ratio: 4 / 3; }
.sobre__media--portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 440px; justify-self: center; }
.sobre__media img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: center 15%; top: -9%; will-change: transform; }
.sobre__media-tag { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: var(--cream); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(10, 15, 28, 0.55); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.sobre__copy h2 { margin-bottom: 1.6rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.sobre__copy p { color: var(--text-dim); margin-bottom: 1.2rem; }
.sobre__copy strong { color: var(--cream); font-weight: 500; }
.sobre__copy em { color: var(--accent-bright); font-style: italic; }
.sobre__facts { list-style: none; margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1.5rem; }
.sobre__facts li { padding: 0.7rem 0; border-top: 1px solid var(--line); color: var(--text); font-size: 0.92rem; }
.sobre__facts li span { display: block; color: var(--accent); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.15rem; }

/* ---------- Cómo pienso / Ideas ---------- */
.ideas { padding: 130px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ideas__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 3.2rem; }
.idea { display: flex; gap: 1.1rem; align-items: baseline; padding: 1.5rem 1.7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); color: var(--cream); font-size: 1.05rem; transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease; }
.idea:hover { border-color: rgba(107, 134, 214, 0.5); transform: translateY(-5px); background: var(--surface); }
.idea span { font-family: var(--font-display); color: var(--accent); font-size: 0.95rem; flex-shrink: 0; }

/* ---------- Temas / tarjetas con tilt ---------- */
.temas { padding: 130px 0; }
.temas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.4rem; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 2.4rem 2rem; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease; transform-style: preserve-3d; }
.card:hover { border-color: rgba(107, 134, 214, 0.5); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4); }
.card__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); margin-bottom: 1.4rem; }
.card h3 { color: var(--cream); font-size: 1.32rem; margin-bottom: 0.8rem; }
.card p { color: var(--text-dim); font-size: 0.97rem; }
.card--cta { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, rgba(75, 99, 181, 0.14), rgba(107, 134, 214, 0.03)); border-color: rgba(107, 134, 214, 0.35); }
.card--cta .servicio__link { margin-top: 0.6rem; }

/* ---------- Libro ---------- */
.libro { padding: 140px 0; }
.libro__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 5rem; align-items: center; }
.libro__cover { position: relative; perspective: 1600px; }
/* Resplandor azul detrás del libro */
.libro__cover::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(circle at 50% 50%, rgba(107, 134, 214, 0.3), transparent 62%);
  filter: blur(26px);
  z-index: 0;
  animation: breathe 8s ease-in-out infinite;
}
.libro__cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 3px 10px 10px 3px;
  transform: rotateY(-19deg) rotateX(3deg) rotateZ(-1deg);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 46px 100px rgba(0, 0, 0, 0.72),
    -14px 10px 30px rgba(0, 0, 0, 0.45);
}
/* Canto de páginas (lado derecho del libro) */
.libro__cover::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1.2%;
  right: -13px;
  width: 15px;
  height: 97.6%;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(
    to right,
    #e8ecf5 0px, #e8ecf5 1px,
    #b9c2d4 1px, #b9c2d4 2px
  );
  transform: rotateY(-19deg) rotateX(3deg) rotateZ(-1deg) translateZ(-1px);
  transform-origin: left center;
  box-shadow: 2px 6px 22px rgba(0, 0, 0, 0.55);
  opacity: 0.85;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.libro__cover:hover img { transform: rotateY(-8deg) rotateX(1deg) rotateZ(0deg) scale(1.02); }
.libro__cover:hover::after { transform: rotateY(-8deg) rotateX(1deg) rotateZ(0deg) scale(1.02) translateZ(-1px); }
.libro__badge { position: absolute; z-index: 3; top: -20px; right: -26px; background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #ffffff; padding: 0.6rem 1.15rem; border-radius: 3px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; box-shadow: 0 12px 34px rgba(107, 134, 214, 0.45); }
.libro__copy h2 { margin-bottom: 1.3rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.libro__copy > p { color: var(--text-dim); margin-bottom: 1.6rem; }
.libro__bullets { list-style: none; margin-bottom: 2.2rem; }
.libro__bullets li { padding: 0.55rem 0 0.55rem 1.9rem; position: relative; color: var(--text); font-size: 0.99rem; }
.libro__bullets li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.libro__note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--text-dim); font-style: italic; }

/* ---------- Banda conferencia ---------- */
.banda { position: relative; height: clamp(360px, 56vh, 580px); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.banda img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; object-position: center 30%; top: -9%; will-change: transform; }
.banda__overlay { position: relative; z-index: 2; padding: 0 24px; }
.banda::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,15,28,0.55), rgba(10,15,28,0.35) 45%, rgba(10,15,28,0.8)); }
.banda__quote { font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.4rem); color: var(--cream); line-height: 1.2; }
.banda__quote em { color: var(--accent-bright); font-style: italic; }
.banda__sub { color: var(--accent-bright); margin-top: 0.9rem; font-size: 1.05rem; letter-spacing: 0.02em; }

/* ---------- Servicios ---------- */
.servicios { padding: 130px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.servicios__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.servicio {
  position: relative;
  --card-accent: var(--accent);
  --card-accent-bright: var(--accent-bright);
  --card-accent-soft: rgba(107, 134, 214, 0.35);
  border: 1px solid var(--card-accent-soft);
  border-radius: 18px;
  padding: 2.6rem 2.1rem;
  background: transparent;
  display: flex; flex-direction: column;
  transition: background 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
/* barra de acento superior en el color de cada servicio */
.servicio::before {
  content: "";
  position: absolute;
  top: -1px; left: 2.1rem; right: 2.1rem;
  height: 3px; border-radius: 0 0 4px 4px;
  background: var(--card-accent);
}
.servicio:hover { background: var(--bg-card); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.servicio h3 { color: var(--cream); font-size: 1.4rem; margin-bottom: 0.7rem; }
.servicio p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 1rem; }
.servicio p strong { color: var(--cream); font-weight: 500; }
.servicio__link { color: var(--card-accent-bright); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: letter-spacing 0.3s ease; margin-top: auto; padding-top: 0.6rem; }
.servicio__link:hover { letter-spacing: 0.03em; }

/* Audiencia a la que va dirigido cada servicio */
.servicio__para {
  color: var(--card-accent-bright) !important;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem !important;
}

/* ── Acento de color por servicio ── */
/* Mentoría → azul */
.servicio--mentoria {
  --card-accent: #6b86d6;
  --card-accent-bright: #9db3ec;
  --card-accent-soft: rgba(107, 134, 214, 0.32);
}
/* Programas → ámbar */
.servicio--programas {
  --card-accent: #d9a441;
  --card-accent-bright: #eabf5e;
  --card-accent-soft: rgba(217, 164, 65, 0.32);
}

/* Consultoría (ticket más alto) → verde, destaca un poco más */
.servicio--destacado {
  --card-accent: #4bbf8a;
  --card-accent-bright: #82dcb2;
  --card-accent-soft: rgba(75, 191, 138, 0.5);
  background: linear-gradient(165deg, rgba(75, 191, 138, 0.12), transparent 62%);
  box-shadow: 0 0 0 1px rgba(75, 191, 138, 0.22), 0 22px 60px rgba(75, 191, 138, 0.1);
}
.servicio--destacado::before { height: 4px; box-shadow: 0 0 14px rgba(75, 191, 138, 0.7); }
.servicio--destacado:hover { background: linear-gradient(165deg, rgba(75, 191, 138, 0.18), var(--bg-card) 70%); }

/* ---------- Programas ---------- */
.programas { padding: 130px 0; position: relative; overflow: hidden; }
.programas__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.programa {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}
.programa:hover { transform: translateY(-6px); border-color: rgba(107, 134, 214, 0.5); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.programa__banner {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.9rem;
  overflow: hidden;
  background: linear-gradient(135deg, #182142 0%, #2b3a6b 55%, #4b63b5 100%);
}
.programa__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.programa__banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(157, 179, 236, 0.3), transparent 58%);
}
.programa__banner--vacio { background: linear-gradient(135deg, #131a2c 0%, #1c2745 100%); }
.programa__banner-kicker {
  position: relative; z-index: 1;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-bright); font-weight: 600;
}
.programa__banner-title {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--cream);
  line-height: 1.15;
}
.programa__body { display: flex; flex-direction: column; flex: 1; padding: 2rem; }
.programa__estado {
  align-self: flex-start;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-bright);
  border: 1px solid rgba(107, 134, 214, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.programa__body h3 { color: var(--cream); font-size: 1.35rem; margin-bottom: 0.8rem; }
.programa__body p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 1.6rem; }
.programa__cta { align-self: flex-start; margin-top: auto; }
.programa .servicio__link { margin-top: auto; }

/* ---------- Contacto ---------- */
.contacto { padding: 150px 0; background: radial-gradient(ellipse at 50% 120%, rgba(75, 99, 181, 0.18) 0%, transparent 60%), var(--bg-soft); border-top: 1px solid var(--line); text-align: center; }
.contacto__avatar { width: 108px; height: 108px; margin: 0 auto 2rem; border-radius: 50%; overflow: hidden; border: 2px solid rgba(107, 134, 214, 0.4); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
.contacto__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.contacto__inner h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
.contacto__inner > p { color: var(--text-dim); margin-bottom: 2.6rem; font-size: 1.1rem; }
.contacto__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   LANDING CONSULTORÍA (consultoria.html)
   ============================================================ */
.reelplayer {
  position: relative;
  z-index: 5; /* por encima de las brasas (#embers, z-index 3) */
  justify-self: center;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(0, 0, 0, 0.35);
  background: var(--bg-card);
}
.reelplayer video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.reelplayer::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 38%, rgba(10, 15, 28, 0.4));
  pointer-events: none;
}
.reelplayer.is-playing::after { display: none; }
.reelplayer__play {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(238, 242, 251, 0.4);
  background: rgba(10, 15, 28, 0.5);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 1.35rem;
  padding-left: 5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.reelplayer__play:hover { transform: scale(1.09); background: rgba(107, 134, 214, 0.45); }
.reelplayer.is-playing .reelplayer__play { display: none; }
/* Botón de sonido (aparece solo mientras reproduce) */
.reelplayer__sound {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(238, 242, 251, 0.35);
  background: rgba(10, 15, 28, 0.55); backdrop-filter: blur(8px);
  color: var(--cream); font-size: 1rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.reelplayer__sound:hover { transform: scale(1.09); background: rgba(107, 134, 214, 0.45); }
.reelplayer.is-playing .reelplayer__sound { display: flex; }
/* Etiqueta "Ver de nuevo" bajo el botón central al terminar */
.reelplayer__replay-label { position: absolute; left: 0; right: 0; bottom: 30%; text-align: center; color: var(--cream); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; display: none; }
.reelplayer.is-ended .reelplayer__replay-label { display: block; }

/* Hero de la landing: la foto es horizontal (mirando al teléfono), la encuadramos hacia él */
.clanding__hero .hero__photo-frame img { object-position: 68% center; }

/* Cita con foto (split legible) */
.splitquote { padding: 120px 0; }
.splitquote__inner { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 4rem; align-items: center; }
.splitquote__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.splitquote__media img { display: block; width: 100%; height: auto; }
.splitquote__text { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.7rem); color: var(--cream); line-height: 1.25; margin: 0.8rem 0 1rem; }
.splitquote__text em { color: var(--accent-bright); font-style: italic; }
.splitquote__sub { color: var(--text-dim); font-size: 1.02rem; }

.proceso { padding: 130px 0; position: relative; overflow: hidden; }
.proceso__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 3.2rem; }
.paso {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.3rem 2rem;
  background: var(--bg-card);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.paso:hover { transform: translateY(-5px); border-color: rgba(107, 134, 214, 0.5); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.paso__num { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); margin-bottom: 0.7rem; }
.paso h3 { color: var(--cream); font-size: 1.25rem; margin-bottom: 0.6rem; }
.paso p { color: var(--text-dim); font-size: 0.97rem; }

.paraquien { padding: 130px 0; }
.paraquien__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; }
.paraquien__media { justify-self: center; width: 100%; max-width: 400px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.paraquien__media img { width: 100%; height: 100%; object-fit: cover; }
.paraquien__copy h2 { margin-bottom: 1.4rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.paraquien__copy p { color: var(--text-dim); margin-bottom: 1.1rem; }
.paraquien__copy strong { color: var(--cream); font-weight: 500; }
.paraquien__inner--center { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin: 0 auto; }
.paraquien__inner--center .paraquien__copy p { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 52px; border-top: 1px solid var(--line); text-align: center; }
.footer__firma { height: 124px; opacity: 0.9; margin-bottom: 1.2rem; }
.footer p { color: var(--text-dim); font-size: 0.92rem; }
.footer__copy { margin-top: 0.6rem; font-size: 0.8rem; opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 2.5rem; text-align: left; min-height: auto; }
  .hero__photo { order: -1; }
  .hero__photo-frame { width: min(300px, 68vw); }
  .hero__scroll { display: none; }
}
@media (max-width: 900px) {
  .libro__grid, .sobre__grid, .video__grid { grid-template-columns: 1fr; gap: 3rem; }
  .video__copy { text-align: center; }
  .video__copy > p { margin-left: auto; margin-right: auto; }
  .temas__grid, .servicios__grid, .metrics__grid, .ideas__grid, .programas__grid, .proceso__grid { grid-template-columns: 1fr; }
  .programas { padding: 80px 0; }
  .paraquien__inner, .splitquote__inner { grid-template-columns: 1fr; gap: 3rem; }
  .proceso, .paraquien, .splitquote { padding: 80px 0; }
  .splitquote__copy { text-align: center; }
  .splitquote__sub { margin-left: auto; margin-right: auto; }
  .metrics { padding: 70px 0; }
  .metrics__grid { gap: 2.6rem; }
  .metric { border-left: none; border-top: 1px solid var(--line); padding: 2.2rem 0 0; }
  .metric:first-child { border-top: none; padding-top: 0; }
  .libro__cover { max-width: 360px; margin: 0 auto; }
  .sobre__facts { grid-template-columns: 1fr 1fr; }

  .nav__burger { display: block; }
  .nav__links { position: fixed; inset: 0; background: rgba(10, 15, 28, 0.97); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; gap: 2.1rem; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1.3rem; }
  .nav.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ============================================================
   SISTEMA DE LUZ CÁLIDA — movimiento cálido que genera confianza
   (linterna que sigue el cursor, brasas de polvo dorado, titulares
    que se encienden, brillo metálico en botones, focos que respiran)
   ============================================================ */

/* Linterna cálida que sigue el cursor (posicionada por JS) */
.lantern {
  position: fixed;
  top: 0; left: 0;
  width: 660px; height: 660px;
  margin: -330px 0 0 -330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 118, 200, 0.17) 0%, rgba(107, 134, 214, 0.08) 32%, transparent 66%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: transform;
}
.lantern.is-on { opacity: 1; }

/* Brasas / polvo dorado flotando en la luz */
#embers {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

/* Titulares que "se encienden" al aparecer */
.warmlit { animation: warmup 1.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes warmup {
  0%   { text-shadow: 0 0 0 rgba(157, 179, 236, 0); filter: brightness(0.8); }
  38%  { text-shadow: 0 0 28px rgba(157, 179, 236, 0.55), 0 0 66px rgba(75, 99, 181, 0.28); filter: brightness(1.14); }
  100% { text-shadow: 0 0 0 rgba(157, 179, 236, 0); filter: brightness(1); }
}

/* Hero: el título se enciende al asentarse + bloom cálido tras la foto */
.hero.is-in .hero__title { animation: warmup 2.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
.hero__photo-frame::before {
  content: "";
  position: absolute;
  inset: -32%;
  z-index: -1;
  background: radial-gradient(circle at 50% 42%, rgba(90, 118, 200, 0.4), transparent 60%);
  filter: blur(22px);
  animation: breathe 7s ease-in-out infinite;
}

/* Brillo metálico que recorre los botones dorados (luz sobre oro) */
.btn--primary { position: relative; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -65%;
  width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(240, 246, 255, 0.6), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 20% { left: -65%; }
  46%, 100% { left: 135%; }
}

/* Focos cálidos que respiran y se desplazan en las secciones */
.metrics, .ideas, .servicios { position: relative; overflow: hidden; }
.metrics::before, .ideas::before, .servicios::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 99, 181, 0.15), transparent 66%);
  animation: drift 17s ease-in-out infinite;
}
.metrics::before { top: -200px; left: -140px; }
.ideas::before { bottom: -220px; right: 8%; animation-delay: -8s; }
.servicios::before { bottom: -240px; right: -150px; animation-delay: -5s; }
.metrics .container, .ideas .container, .servicios .container { position: relative; z-index: 1; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate(46px, 34px) scale(1.14); opacity: 1; }
}

@media (max-width: 900px) {
  .lantern { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .line-mask > span { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__glow, .hero__photo-frame, .hero__photo-frame::before, .hero__scroll span,
  .figura .ring, .orbit, .core,
  .btn--primary::after, .metrics::before, .ideas::before, .servicios::before { animation: none; }
  .warmlit { animation: none; }
  .lantern, #embers { display: none; }
  html { scroll-behavior: auto; }
}
