/* =================================================================
   Sinergia Estoica | Campus Zen (sitio final)
   Sistema de diseno portado de campus-zen-unlocked:
   obsidiana calida, oro degradado, Cormorant + Inter, bordes y glow dorados.
   Incluye: player con barra falsa. Los CTA abren el calendario en pestana nueva.
   ================================================================= */

:root {
  --background: 20 10% 4%;
  --foreground: 40 30% 92%;
  --card: 20 8% 8%;
  --muted: 20 6% 18%;
  --muted-foreground: 30 10% 55%;
  --secondary: 20 6% 14%;
  --border: 30 8% 18%;

  --gold: 38 60% 50%;
  --gold-light: 40 50% 65%;
  --gold-dark: 35 55% 35%;
  --marble: 40 15% 90%;
  --obsidian: 20 10% 6%;
  --bronze: 30 40% 35%;

  --radius: 0.5rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;

  --maxw: 1120px;
  --maxw-narrow: 680px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  background-image:
    radial-gradient(90% 55% at 50% -5%, hsl(var(--gold) / 0.10), transparent 60%),
    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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; }
img, video { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  color: hsl(var(--gold-light));
  background: hsl(var(--gold) / 0.1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ------------------------------ Signature classes (campus) ------------------------------ */
.text-gradient-gold {
  background-image: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold)), hsl(var(--gold-dark)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.border-gradient-gold {
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(hsl(var(--card)), hsl(var(--card))) padding-box,
    linear-gradient(135deg, hsl(var(--gold) / 0.5), hsl(var(--gold-dark) / 0.3)) border-box;
}
.glow-gold { box-shadow: 0 0 40px -10px hsl(var(--gold) / 0.3); }
.stoic-divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, hsl(var(--gold) / 0.4), transparent);
}
.stoic-divider--hero { max-width: var(--maxw); margin: 0 auto; }

/* ------------------------------ Layout ------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--s-6);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--s-24); position: relative; }
.section--panel { background: hsl(var(--obsidian)); }
.section--panel .stoic-divider { position: absolute; top: 0; left: 0; }

/* ------------------------------ Fondos por seccion ------------------------------ */
.sec { position: relative; overflow: hidden; isolation: isolate; }
.sec > * { position: relative; z-index: 1; }
.sec::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
/* Seccion 2 · Casos: panel obsidiana con halo dorado superior */
.sec--cases { background: hsl(var(--obsidian)); }
.sec--cases::before {
  background:
    radial-gradient(72% 60% at 50% 0%, hsl(var(--gold) / 0.12), transparent 62%),
    radial-gradient(90% 80% at 50% 120%, hsl(var(--gold-dark) / 0.08), transparent 60%);
}
/* Seccion 3 · Manifiesto: dos halos diagonales sutiles */
.sec--manifiesto::before {
  background:
    radial-gradient(48% 42% at 100% 12%, hsl(var(--gold) / 0.09), transparent 60%),
    radial-gradient(46% 44% at 0% 92%, hsl(var(--gold-dark) / 0.08), transparent 60%);
}
/* Seccion 4 · Promesa: reflector central sobre obsidiana */
.sec--promesa { background: hsl(var(--obsidian)); }
.sec--promesa::before {
  background: radial-gradient(46% 62% at 50% 50%, hsl(var(--gold) / 0.14), transparent 66%);
}

/* ------------------------------ Tipografia comun ------------------------------ */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: hsl(var(--gold));
}
.eyebrow--center { text-align: center; }

.section__head { text-align: center; margin-bottom: var(--s-16); }
.section__head .eyebrow { margin-bottom: var(--s-4); }
.section__title { margin: 0; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; }
.section__title--left { text-align: left; }

.lead-serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(25px, 3.8vw, 36px);
  line-height: 1.3;
  margin: 0 0 var(--s-8);
  color: hsl(var(--foreground));
  text-wrap: balance;
}
.lead-serif--center { text-align: center; margin: 0; }

.prose p { color: hsl(var(--muted-foreground)); margin: 0 0 var(--s-6); }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: hsl(var(--foreground)); font-weight: 500; }
.prose__p { color: hsl(var(--muted-foreground)); margin: var(--s-4) 0 0; }
.prose__p em, .lead-serif em { color: hsl(var(--gold-light)); font-style: italic; }

/* ------------------------------ Boton ------------------------------ */
.btn {
  --py: 15px;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: var(--py) 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: hsl(var(--background));
  background: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold)) 55%, hsl(var(--gold-dark)));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px -8px hsl(var(--gold) / 0.55); }
.btn:focus-visible { outline: 2px solid hsl(var(--gold-light)); outline-offset: 3px; }
.btn--sm { --py: 9px; padding-inline: 20px; font-size: 12px; }
.btn--lg { --py: 18px; padding-inline: 44px; font-size: 15px; }

/* ------------------------------ Topbar ------------------------------ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px clamp(16px, 4vw, 40px);
  background: hsl(var(--background) / 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border));
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.topbar.is-visible { transform: translateY(0); opacity: 1; }
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.mark {
  width: 9px; height: 9px;
  border: 1.5px solid hsl(var(--gold));
  transform: rotate(45deg);
  display: inline-block;
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(104px, 16vh, 168px) var(--s-24);
  text-align: center;
  overflow: hidden;
}
.hero__aura {
  position: absolute;
  top: -6%; left: 50%;
  width: 70vw; height: 62vh;
  max-width: 860px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 40%, hsl(var(--gold) / 0.16), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero__aura--book { top: -30%; opacity: 0.7; }
.hero__inner { position: relative; z-index: 1; }
.hero__hook {
  margin: 0 auto;
  max-width: 18em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  text-wrap: balance;
}
.hero__hooksub {
  margin: var(--s-4) auto 0;
  max-width: 24em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0.02em;
  color: hsl(var(--muted-foreground));
}
.hero__title {
  margin: var(--s-6) auto 0;
  max-width: 24em;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__lead {
  margin: var(--s-6) auto 0;
  max-width: 31rem;
  font-size: 18px;
  color: hsl(var(--muted-foreground));
}

/* ------------------------------ VSL (player con barra falsa) ------------------------------ */
.vsl { margin: clamp(40px, 6vw, 66px) auto 0; max-width: 800px; }
.vsl__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  background: #000;
}
.vsl__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: var(--radius); }
.vsl__poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--s-6);
  border: none; cursor: pointer;
  border-radius: var(--radius);
  z-index: 10;
  background:
    url("./public/media/vsl/IMG_5638.PNG") center / cover no-repeat,
    #000;
  transition: opacity 0.4s var(--ease);
}
.vsl__play {
  display: grid; place-items: center;
  width: 88px; height: 88px;
  color: hsl(var(--gold-light));
  border: 1.5px solid hsl(var(--gold-light));
  border-radius: 50%;
  margin-left: 4px;
}
.vsl__poster:hover .vsl__play { background: hsl(var(--gold) / 0.12); }
.vsl__hint {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: hsl(var(--foreground) / 0.6);
}

/* Toggle central play/pausa (click en el centro del video) */
.vsl__center {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  padding: 0; border: none; background: transparent;
  cursor: pointer;
}
.vsl__centericon {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  color: hsl(var(--gold-light));
  border: 1.5px solid hsl(var(--gold-light));
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  pointer-events: none;
}
/* Pausado (una vez iniciado): ▶ fijo. Reproduciendo: aparece || con la actividad
   del mouse y se oculta tras 1s de inactividad (clase .is-active desde el JS). */
.vsl__frame.has-started:not(.is-playing) .vsl__centericon,
.vsl__frame.has-started.is-active .vsl__centericon { opacity: 1; transform: scale(1); }

/* Controles custom */
.vsl__controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.vsl__controls.is-hidden { opacity: 0; pointer-events: none; }
.vsl__ctrl {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: hsl(var(--gold));
  background: transparent; border: none; cursor: pointer;
}
.vsl__ctrl:hover { color: hsl(var(--gold-light)); }
.vsl__track {
  flex: 1; height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.vsl__fill {
  height: 100%; width: 0%;
  background: hsl(var(--gold));
  box-shadow: 0 0 8px hsl(var(--gold) / 0.5);
  transition: width 0.15s linear;
}
.vsl__end {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-6);
  text-align: center; padding: 0 24px;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
}
.vsl__fallback {
  position: absolute; inset: 0; z-index: 15;
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: center; justify-content: center; text-align: center;
  padding: var(--s-6); color: hsl(var(--muted-foreground));
}
.vsl__cap { margin-top: var(--s-4); font-size: 13px; font-style: italic; color: hsl(var(--muted-foreground)); }
[hidden] { display: none !important; }

.hero__cta { margin-top: clamp(28px, 4vw, 40px); position: relative; z-index: 1; }

/* --- Tarjeta CTA: recuadro dorado que envuelve el botón de agendar --- */
.apply-card {
  width: 440px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 28px;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, hsl(var(--gold) / 0.55), hsl(var(--gold-dark) / 0.3)) border-box;
  box-shadow: 0 24px 60px -22px hsl(var(--gold) / 0.28);
}
.apply-card__inner {
  background: #ffffff;
  border: 1px solid hsl(30 20% 88%);
  border-radius: 20px;
  padding: 16px 20px 22px;
  text-align: center;
}
.apply-card__banner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 30% 20%, hsl(var(--gold) / 0.18) 0%, hsl(var(--obsidian)) 55%, #000 100%);
}
.apply-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apply-card__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: hsl(var(--gold-light));
  text-shadow: 0 2px 14px hsl(var(--gold) / 0.35);
}
.apply-card__title {
  margin: 20px 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: hsl(20 12% 12%);
}
.apply-card__body {
  color: hsl(20 8% 38%);
  font-size: 14px;
  line-height: 1.55;
}
.apply-card__body + .apply-card__body { margin-top: 12px; }
.apply-card__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.apply-card__list li {
  position: relative;
  padding-left: 20px;
  color: hsl(20 8% 38%);
  font-size: 14px;
  line-height: 1.55;
}
.apply-card__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--gold));
}
.apply-card__list + .apply-card__body { margin-top: 14px; }
.apply-card__meta {
  margin: 18px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: hsl(20 8% 45%);
  font-size: 13px;
}
.apply-card__meta svg { flex-shrink: 0; }
.apply-card__btn { display: flex; width: 100%; justify-content: center; }

/* Bloque de confianza (entre el video y el CTA) */
.hero__trust {
  margin: clamp(32px, 5vw, 48px) auto 0;
  max-width: 40rem;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.hero__trust p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  color: hsl(var(--foreground) / 0.9);
  text-wrap: balance;
}
.hero__trust p:first-child { color: hsl(var(--gold-light)); font-style: italic; }

/* ------------------------------ Casos de exito (mosaico) ------------------------------ */
.cases {
  /* Altura del "escalón" que baja la columna derecha */
  --stair: clamp(30px, 6vw, 84px);
  margin: 0 auto;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 30px);
  align-items: start;
  /* Espacio extra abajo para que la columna desplazada no se recorte */
  padding-bottom: var(--stair);
}
/* Cada lado es una pila vertical de recuadros */
.cases__col {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 30px);
}
/* Escalera: la columna derecha completa baja un escalón */
.cases__col--right { transform: translateY(var(--stair)); }
.case {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--gold) / 0.28);
  background:
    radial-gradient(120% 120% at 20% 10%, hsl(var(--gold) / 0.14), transparent 55%),
    hsl(var(--card));
  box-shadow: 0 0 40px -18px hsl(var(--gold) / 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--gold) / 0.6);
  box-shadow: 0 0 50px -12px hsl(var(--gold) / 0.5);
}
.case__img {
  display: block;
  width: 100%; height: auto;
  transition: transform 0.6s var(--ease);
}
.case:hover .case__img { transform: scale(1.03); }

/* Video dentro del mosaico */
.case__video {
  display: block;
  width: 100%; height: auto;
  background: #000;
}
.case--video .case__img { /* por si se usa poster luego */ cursor: default; }

/* Recuadro placeholder ("joaco") — se reemplaza por imagen cuando esté */
.case--placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-style: dashed;
  border-color: hsl(var(--gold) / 0.4);
  background:
    radial-gradient(120% 120% at 50% 30%, hsl(var(--gold) / 0.1), transparent 60%),
    hsl(var(--card));
}
.case__ph {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.02em;
  color: hsl(var(--gold) / 0.7);
  text-transform: lowercase;
}
/* En video y placeholders no aplica la lupa de zoom */
.case--video::after,
.case--placeholder::after { display: none; }

.case__cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: clamp(14px, 2vw, 22px);
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, hsl(var(--background) / 0.92) 12%, hsl(var(--background) / 0.55) 55%, transparent);
}
.case__cap b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.1;
  color: hsl(var(--foreground));
}
.case__cap span {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.35;
  color: hsl(var(--muted-foreground));
}

/* ------------------------------ Diagnostico (lista integrada, sin cajas) ------------------------------ */
.diag { margin-top: clamp(48px, 8vw, 84px); }
.diag > .eyebrow { margin-bottom: var(--s-3); }
.diag__title {
  margin: 0 0 var(--s-8);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.diag__list { list-style: none; margin: 0; padding: 0; }
.diag__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: baseline;
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid hsl(var(--border));
  transition: border-color 0.4s var(--ease);
}
.diag__item:last-child { border-bottom: 1px solid hsl(var(--border)); }
.diag__item:hover { border-color: hsl(var(--gold) / 0.4); }
.diag__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  font-variant-numeric: normal;
  background-image: linear-gradient(135deg, hsl(var(--gold-light)), hsl(var(--gold-dark)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.diag__name { margin: 0 0 var(--s-2); font-size: clamp(19px, 2.4vw, 23px); }
.diag__body p { margin: 0; color: hsl(var(--muted-foreground)); font-size: 15.5px; }

/* ------------------------------ Quotes ------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.quote { margin: 0; padding: var(--s-8) var(--s-6); }
.quote__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, hsl(var(--gold-light)), hsl(var(--bronze)));
  margin-bottom: var(--s-4);
}
.quote blockquote {
  margin: 0 0 var(--s-6);
  font-family: var(--font-display); font-style: italic;
  font-size: 19px; line-height: 1.5; color: hsl(var(--foreground));
}
.quote blockquote::before { content: "\201C"; color: hsl(var(--gold)); }
.quote blockquote::after { content: "\201D"; color: hsl(var(--gold)); }
.quote figcaption { font-size: 13px; }
.quote figcaption b { display: block; color: hsl(var(--foreground)); font-weight: 500; }
.quote figcaption span { color: hsl(var(--muted-foreground)); }

/* ------------------------------ Bio ------------------------------ */
.bio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  grid-template-areas:
    "left center right"
    ".    name   .";
  justify-content: center;
  column-gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
/* En desktop, viewport y track no maquetan: las 3 fotos entran directo al grid del .bio */
.bio__viewport, .bio__track { display: contents; }
.bio__track > .bio__portrait:nth-child(1) { grid-area: left; }
.bio__track > .bio__portrait.bio__portrait--center { grid-area: center; }
.bio__track > .bio__portrait:nth-child(3) { grid-area: right; }
/* La del medio, un poco más elevada */
.bio__portrait--center { transform: translateY(-26px); }
.bio__name {
  grid-area: name;
  margin: -18px 0 0;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(24px, 3vw, 34px);
}
.bio__nav { display: none; }

.bio__portrait {
  position: relative;
  aspect-ratio: 4 / 7; overflow: hidden; display: grid; place-items: center; text-align: center;
  color: hsl(var(--muted-foreground)); font-size: 12px; letter-spacing: 0.06em;
}
.bio__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Partículas doradas que caen desde cada card */
.bio__falls { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 2; }
.bio__p {
  position: absolute;
  top: 100%;
  width: var(--sz, 6px);
  height: var(--sz, 6px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, hsl(var(--gold-light)), hsl(var(--gold)));
  box-shadow: 0 0 8px hsl(var(--gold) / 0.8);
  opacity: 0;
  will-change: transform, opacity;
  animation: bioFall var(--dur, 4s) linear forwards;
}
@keyframes bioFall {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  12%  { opacity: var(--peak, 1); }
  100% { transform: translate(var(--drift, 0), var(--fall, 130px)) scale(0.35); opacity: 0; }
}

/* ------------------------------ Reservar + calendario ------------------------------ */
.section--book { text-align: center; overflow: hidden; }
.book { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.section--book .eyebrow { margin-bottom: var(--s-4); }
.book__title { margin: 0 0 var(--s-4); font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.book__lead { margin: 0 0 var(--s-8); color: hsl(var(--muted-foreground)); max-width: 30rem; }
.book__hint { margin: 0 0 var(--s-6); font-size: 13px; color: hsl(var(--muted-foreground)); max-width: 30rem; }
.book__fine { margin: var(--s-6) 0 0; font-size: 12px; color: hsl(var(--muted-foreground) / 0.7); }

/* Calendario: tres estados sobre el MISMO nodo (no se remonta el iframe) */
.calendar { position: relative; z-index: 1; }
.calendar.is-hidden { display: none; }
.calendar.is-preload {          /* en viewport pero invisible: fuerza la carga de Calendly */
  position: fixed; inset: 0;
  opacity: 0; z-index: -10; pointer-events: none; overflow: hidden;
}
.calendar.is-revealed {
  position: relative; opacity: 1;
  margin-top: var(--s-12);
  transition: opacity 0.6s var(--ease);
}
.calendar__host { min-width: 320px; height: 1040px; }

/* ------------------------------ Footer ------------------------------ */
.foot { padding-block: var(--s-12); border-top: 1px solid hsl(var(--border)); }
.foot__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); }
.foot__brand { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--font-display); font-size: 18px; }
.foot__meta { font-size: 13px; color: hsl(var(--muted-foreground)); font-style: italic; }

/* ------------------------------ Reveal + keyframes (campus) ------------------------------ */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { opacity: 1; transform: none; }

.animate-glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px -5px hsl(var(--gold) / 0.2); }
  50% { box-shadow: 0 0 40px -5px hsl(var(--gold) / 0.4); }
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 860px) {
  .quotes { grid-template-columns: 1fr; }
  .calendar__host { height: 1120px; }
  /* Escalón más chico en tablets */
  .cases { --stair: clamp(20px, 5vw, 44px); }

  /* Bio como slider: nombre arriba, una foto a la vez, flechas */
  .bio {
    display: block;
    grid-template-areas: none;
    text-align: center;
  }
  .bio__name {
    grid-area: auto;
    margin: 0 auto clamp(16px, 4vw, 22px);
    white-space: normal;
  }
  .bio__viewport {
    display: block;
    overflow: hidden;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: var(--radius);
  }
  .bio__track {
    display: flex;
    transition: transform 0.4s var(--ease);
    touch-action: pan-y;
  }
  .bio__portrait {
    flex: 0 0 100%;
    max-width: none;
    margin: 0;
    transform: none !important;
  }
  .bio__nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: clamp(16px, 4vw, 22px);
  }
  .bio__arrow {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    color: hsl(var(--foreground));
    background: hsl(var(--card));
    border: 1px solid hsl(var(--gold) / 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
  }
  .bio__arrow:hover { border-color: hsl(var(--gold) / 0.8); }
  .bio__arrow:active { transform: scale(0.92); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s-16); }
  .container { padding-inline: var(--s-4); }
  /* En móvil: una sola columna, sin escalón */
  .cases {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 4vw, 22px);
    --stair: 0px;
    padding-bottom: 0;
  }
  .cases__col { display: contents; }
  .cases__col--right { transform: none; }
  /* Orden específico de las tarjetas en mobile (via --m en cada <figure>) */
  .case { order: var(--m, 0); }
}

/* ------------------------------ Marca de agua / footer ------------------------------ */
.sitefooter {
  margin-top: clamp(48px, 8vw, 88px);
  padding: 26px 0 34px;
  border-top: 1px solid hsl(var(--border) / 0.6);
  background: linear-gradient(180deg, transparent, hsl(var(--obsidian) / 0.7));
}
.sitefooter__inner { text-align: center; }
.sitefooter__credit {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.75);
}
.sitefooter__brand {
  color: hsl(var(--gold-light));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.sitefooter__brand:hover { color: hsl(var(--gold)); }

/* ------------------------------ Lightbox / Galería ------------------------------ */
.case__img { cursor: zoom-in; }
.case::after {
  content: "";
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: hsl(var(--background) / 0.55) center / 18px 18px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9c46a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  border: 1px solid hsl(var(--gold) / 0.4);
  backdrop-filter: blur(2px);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.case:hover::after { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.28s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(6px);
}
.lightbox__stage {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: clamp(48px, 7vh, 90px) 12px;
}
.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 82vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--gold) / 0.3);
  box-shadow: 0 24px 80px -20px hsl(var(--background) / 0.9);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.22s var(--ease);
  user-select: none; -webkit-user-drag: none;
  will-change: transform;
}
.lightbox.is-zoomed .lightbox__img { cursor: grab; }
.lightbox.is-panning .lightbox__img { cursor: grabbing; transition: none; }

.lightbox__btn {
  position: absolute; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--foreground));
  background: hsl(var(--background) / 0.55);
  border: 1px solid hsl(var(--gold) / 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
  backdrop-filter: blur(4px);
}
.lightbox__btn:hover {
  background: hsl(var(--background) / 0.85);
  border-color: hsl(var(--gold) / 0.7);
}
.lightbox__btn:active { transform: scale(0.94); }
.lightbox__close { top: 16px; right: 16px; width: 46px; height: 46px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
.lightbox__prev { left: clamp(10px, 3vw, 34px); }
.lightbox__next { right: clamp(10px, 3vw, 34px); }

.lightbox__bar {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, hsl(var(--background) / 0.85), transparent);
  font-size: 12.5px; letter-spacing: 0.04em;
  color: hsl(var(--muted-foreground));
}
.lightbox__count { color: hsl(var(--foreground)); font-weight: 500; }
.lightbox__zoom { color: hsl(var(--gold)); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.lightbox__hint { opacity: 0.85; }

@media (max-width: 560px) {
  .lightbox__hint { display: none; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__img { max-width: 94vw; max-height: 76vh; }
}

/* ------------------------------ Accesibilidad ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *:not(.vsl__fill) { animation: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
}
