/* =========================================================================
   SISTEMA DE DISEÑO — LANDING JALDÚN
   Estética editorial inspirada en eventos.jaldun.com
   Titulares y texto: Montserrat (la del PDF del programa)
   Fondo cálido, tinta casi negra, acentos lavanda, esquinas rectas.
   El contenido se edita en config.js (no aquí).
   ========================================================================= */

/* ---------------------- 1. VARIABLES (tema) ---------------------- */
:root {
  /* Paleta extraída de eventos.jaldun.com */
  --paper:       hsl(40 20% 98%);   /* fondo cálido */
  --paper-2:     hsl(40 15% 94%);   /* gris cálido (secciones alternas) */
  --ink:         hsl(0 0% 8%);      /* texto casi negro */
  --muted:       hsl(0 0% 40%);     /* texto secundario */
  --card:        #ffffff;
  --hairline:    hsl(0 0% 88%);     /* líneas finas */
  --border:      hsl(0 0% 90%);

  --lavender:        hsl(246 70% 86%);
  --lavender-deep:   hsl(246 55% 70%);
  --lavender-deeper: hsl(246 48% 60%);
  --lavender-soft:   hsl(246 70% 95%);

  /* Tipografía del programa: Montserrat (titulares y texto) */
  --font-serif: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radios (editorial: casi rectos) */
  --r:    4px;
  --r-lg: 6px;

  /* Layout */
  --maxw: 1140px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.02em; }

/* ---------------------- 3. LAYOUT ---------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2rem); }
.container--narrow { max-width: 760px; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--paper-2); }

.section__head { max-width: 720px; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.section__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
}
#temario-title { color: var(--lavender-deeper); }
.section__subtitle {
  margin-top: 1rem; font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--muted); max-width: 60ch;
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--speakers { grid-template-columns: repeat(3, 1fr); }

/* Resalte lavanda (subrayado tipo rotulador) */
.hl {
  background: linear-gradient(transparent 8%, var(--lavender) 8% 92%, transparent 92%);
  color: inherit; padding: 0 .1em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------------------- 4. BOTONES ---------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: hsl(249 62% 67%); color: #fff; }
.btn--primary:hover { background: hsl(249 55% 59%); color: #fff; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------------------- 5. NAVBAR ---------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: hsl(40 20% 98% / .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.navbar.scrolled { border-bottom-color: var(--hairline); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.navbar__logo { font-family: var(--font-serif); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; display: inline-flex; align-items: center; }
.navbar__logo img { height: 34px; width: auto; display: block; }
.navbar__links { display: flex; gap: 2rem; }
.navbar__links a { color: var(--muted); font-weight: 500; font-size: .92rem; transition: color .2s; }
.navbar__links a:hover { color: var(--ink); }

/* ---------------------- 6. HERO ---------------------- */
.hero { position: relative; padding: 130px 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(251,250,247,.82) 0%, rgba(251,250,247,.60) 50%, rgba(251,250,247,.38) 100%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lavender-deeper); margin-bottom: 1.5rem;
}
.hero__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lavender-deep); }
.hero__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -0.01em;
}
.hero__title-light { font-weight: 300; }
.hero__subtitle { margin-top: 1.5rem; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 540px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.9rem 0; max-width: 560px; }
.hero__meta-item {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--card);
}
.hero__meta-icon { display: inline-flex; color: var(--lavender-deeper); }
.hero__meta-icon svg { width: 18px; height: 18px; }
.hero__meta-value { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1; white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: .5rem; }

@media (max-width: 600px) {
  .hero__meta { gap: .6rem; }
  .hero__meta-item { flex: 1 1 auto; }
}

.hero__media { position: relative; display: flex; justify-content: center; }
.hero__image-wrap {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden; background: transparent;
}
.hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
/* Respaldo para navegadores sin soporte de aspect-ratio (ej. iOS Safari antiguo):
   sin esto el contenedor colapsa a altura 0 y la imagen no se ve. */
@supports not (aspect-ratio: 1 / 1) {
  .hero__image-wrap { height: 0; padding-bottom: 100%; }
  .hero__image-wrap img { position: absolute; inset: 0; }
}
.hero__glow {
  position: absolute; top: -15%; right: -8%; width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, hsl(246 70% 86% / .35), transparent 62%);
  z-index: -1; filter: blur(10px);
}

/* Cuenta atrás */
.countdown { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); margin-top: 2.2rem; flex-wrap: wrap; }
.cd { display: flex; flex-direction: column; align-items: flex-start; min-width: 56px; }
.cd__num {
  font-family: var(--font-serif); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--ink);
}
.cd__lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: .45rem; }
.cd--done { font-family: var(--font-serif); font-size: 1.2rem; color: var(--lavender-deeper); }

/* ---------------------- 7. FRANJA (ticker) ---------------------- */
.ticker { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--paper); overflow: hidden; }
.ticker__track {
  display: flex; align-items: center; width: max-content;
  animation: ticker-scroll 80s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__item {
  display: inline-flex; align-items: center; white-space: nowrap; padding: 1.05rem 0;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ticker__item::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lavender-deep);
  margin: 0 1.9rem; flex: 0 0 auto;
}

/* ---------------------- 8. TARJETAS ---------------------- */
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.grid .card:hover, .sobre-grid .card:hover { transform: translateY(-6px); border-color: var(--lavender-deep); background: var(--lavender-soft); box-shadow: 0 18px 38px hsl(246 42% 45% / .16); }

/* "Convierte la salud capilar..." como carrusel de 1 tarjeta, con flechas a los lados (escritorio y móvil) */
.sobre-carousel { position: relative; padding: 0 3.4rem; }
.sobre-grid {
  display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.sobre-grid::-webkit-scrollbar { display: none; }
.sobre-grid .card { flex: 0 0 100%; max-width: 100%; scroll-snap-align: center; }
.sobre-arrow {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; padding: 0; border-radius: 50%; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--hairline); color: var(--ink);
  box-shadow: 0 6px 16px rgba(20,21,26,.14); z-index: 2; cursor: pointer;
}
.sobre-arrow:hover { border-color: var(--lavender-deep); color: var(--lavender-deeper); }
.sobre-arrow svg { width: 19px; height: 19px; }
.sobre-arrow--prev { left: 0; }
.sobre-arrow--next { right: 0; }
.sobre-arrow:disabled { opacity: .3; pointer-events: none; }
.sobre-dots { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.4rem; }
.sobre-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--hairline); flex: 0 0 auto; cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.sobre-dots span.is-active { background: var(--lavender-deep); width: 16px; border-radius: 3px; }
@media (max-width: 540px) {
  .sobre-carousel { padding: 0 2.6rem; }
  .sobre-arrow { width: 36px; height: 36px; }
  .sobre-arrow svg { width: 16px; height: 16px; }
}
.card__icon {
  font-size: 1.5rem; line-height: 1; margin-bottom: 1.1rem; color: var(--lavender-deeper);
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lavender-soft); border-radius: var(--r);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; margin-bottom: .55rem; letter-spacing: -.01em; }
.card__text { color: var(--muted); font-size: .97rem; }

/* Galería de patologías (foto + título) */
#patologias.section--alt { background: var(--lavender-soft); }
.patho-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.patho-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.patho-card:hover { transform: translateY(-6px); border-color: var(--lavender-deep); box-shadow: 0 18px 38px hsl(246 42% 45% / .16); }
.patho-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper-2); }
.patho-card__title {
  padding: 1rem 1.2rem 1.3rem; text-align: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem; letter-spacing: -.005em;
}
@media (max-width: 860px) { .patho-grid { grid-template-columns: repeat(2, 1fr); } }

/* Carrusel en móvil: scroll horizontal con snap + flechas + puntos */
.patho-carousel { position: relative; }
.patho-arrow { display: none; }
.patho-dots { display: none; }
@media (max-width: 540px) {
  .patho-grid {
    display: flex; grid-template-columns: unset; gap: .9rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 6vw;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .patho-grid::-webkit-scrollbar { display: none; }
  .patho-card { flex: 0 0 76vw; max-width: 76vw; scroll-snap-align: center; }
  .patho-card__img { aspect-ratio: 1 / 1; }
  .patho-card__title { padding: .8rem .9rem 1rem; font-size: .95rem; }

  .patho-arrow {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 38vw; transform: translateY(-50%);
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    background: #fff; border: 1px solid var(--hairline); color: var(--ink);
    box-shadow: 0 6px 16px rgba(20,21,26,.16); z-index: 2;
  }
  .patho-arrow svg { width: 18px; height: 18px; }
  .patho-arrow--prev { left: 2px; }
  .patho-arrow--next { right: 2px; }
  .patho-arrow:disabled { opacity: .3; pointer-events: none; }

  .patho-dots { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.1rem; }
  .patho-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--hairline);
    transition: background .2s ease, width .2s ease; flex: 0 0 auto;
  }
  .patho-dots span.is-active { background: var(--lavender-deep); width: 16px; border-radius: 3px; }
}

/* Etiqueta (eyebrow) sobre los títulos de sección */
.eyebrow {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--lavender-deeper); margin-bottom: 1rem;
}

/* Evento (datos) */
.fact { text-align: left; }
.fact__icon {
  font-size: 1.3rem; margin-bottom: .8rem; width: 44px; height: 44px; color: var(--lavender-deeper);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lavender-soft); border-radius: var(--r);
}
.fact__icon svg { width: 22px; height: 22px; }
.fact__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.fact__value { font-size: 1.05rem; font-weight: 600; margin-top: .2rem; font-family: var(--font-serif); }

/* --- Sección oscura integrada (estilo eventos.jaldun.com · detalles del evento) --- */
.section--dark { background: #0e0e13; color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .section__subtitle { color: rgba(255,255,255,.55); }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--r); overflow: hidden;
}
.facts .fact { background: #0e0e13; padding: 1.9rem 1.6rem 2.1rem; text-align: left; }
.facts .fact__icon {
  width: auto; height: auto; background: none; border-radius: 0;
  color: #fff; margin-bottom: 1.5rem; font-size: 1.3rem;
}
.facts .fact__icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.facts .fact__label { color: rgba(255,255,255,.5); letter-spacing: .12em; }
.facts .fact__value { color: #fff; font-weight: 500; margin-top: .35rem; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; margin-top: .4rem; }
.btn--ghost-light:hover { background: #fff; color: #0e0e13; border-color: #fff; }
.fact__cta { display: flex; width: calc(100% + 1.1rem); white-space: normal; text-align: left; justify-content: flex-start; border-radius: 10px; padding: .9rem 1.1rem; margin-left: -1.1rem; }

@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* ---------------------- 9. PONENTES ---------------------- */
/* Fondo con hebras de cabello + degradado y luces suaves, para contrastar con las tarjetas */
.section--hairs {
  position: relative; overflow: hidden;
  background-color: #eef0f7;
  background-image: url(../assets/hairs.svg), linear-gradient(160deg, var(--lavender-soft) 0%, #eef0f7 45%, var(--paper-2) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 360px 720px, 100% 100%;
}
.section--hairs::before, .section--hairs::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(6px);
}
.section--hairs::before {
  top: -12%; right: -8%; width: 42vw; height: 42vw; max-width: 480px; max-height: 480px;
  background: radial-gradient(circle, hsl(246 70% 84% / .5), transparent 70%);
}
.section--hairs::after {
  bottom: -16%; left: -10%; width: 38vw; height: 38vw; max-width: 420px; max-height: 420px;
  background: radial-gradient(circle, hsl(328 55% 85% / .35), transparent 70%);
}
.section--hairs > .container { position: relative; z-index: 1; }

.speaker {
  position: relative; overflow: hidden;
  text-align: left; background: #fff;
  border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 2.3rem 2rem 2rem;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.grid--speakers .speaker:hover {
  background: var(--lavender-soft); border-color: var(--lavender-deep);
  box-shadow: 0 18px 38px hsl(246 45% 45% / .16); transform: translateY(-6px);
}
.speaker__content { position: relative; z-index: 3; padding-top: calc(116px + 1.4rem); }
.speaker__media {
  position: absolute; top: 2.3rem; left: 2rem; width: 116px; height: 116px;
  border-radius: 50%; overflow: hidden; z-index: 2;
  border: 4px solid #fff; box-shadow: 0 4px 14px rgba(16,18,30,.12); background: var(--paper-2);
  transition: top .45s cubic-bezier(.4,0,.2,1), left .45s cubic-bezier(.4,0,.2,1),
              width .45s cubic-bezier(.4,0,.2,1), height .45s cubic-bezier(.4,0,.2,1),
              border-radius .45s cubic-bezier(.4,0,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.speaker__media:has(.speaker__video) { cursor: pointer; }
.speaker__tap-hint {
  position: absolute; z-index: 3; pointer-events: none;
  top: calc(2.3rem + 116px - 16px); left: calc(2rem + 58px);
  transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--lavender-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 3px 10px hsl(246 45% 40% / .35);
  animation: tapHintPulse 2.2s ease-in-out infinite;
}
.speaker__tap-hint svg { width: 13px; height: 13px; margin-left: 1px; }
.speaker.is-video-active .speaker__tap-hint { display: none; }
@keyframes tapHintPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.12); }
}
.speaker__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%; margin: 0;
  transition: opacity .35s ease;
}
.speaker__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.speaker__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, hsl(246 45% 8% / .55) 100%);
  opacity: 0; transition: opacity .4s ease;
}
.speaker.is-video-active .speaker__media {
  top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--r);
  border-color: transparent; box-shadow: none;
}
.speaker.is-video-active .speaker__photo { opacity: 0; }
.speaker.is-video-active .speaker__video { opacity: 1; }
.speaker.is-video-active .speaker__scrim { opacity: 1; }
.speaker.is-video-active .speaker__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem 1.3rem 1.2rem;
}
.speaker.is-video-active .speaker__eyebrow {
  color: rgba(255,255,255,.85); font-size: .6rem; margin-bottom: .2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 1px 12px rgba(0,0,0,.6);
}
.speaker.is-video-active .speaker__name {
  color: #fff; font-size: 1.02rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 1px 12px rgba(0,0,0,.6);
}
.speaker.is-video-active .speaker__bio {
  color: rgba(255,255,255,.92); font-size: .66rem; margin-top: .25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 1px 12px rgba(0,0,0,.6);
}
.speaker.is-video-active .speaker__topics,
.speaker.is-video-active .speaker__social { display: none; }
.speaker__eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem; transition: color .3s ease;
}
.speaker__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; transition: color .3s ease; }
.speaker__bio {
  color: var(--lavender-deeper); font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; margin-top: .55rem; line-height: 1.45;
  transition: color .3s ease;
}
.speaker__topics { list-style: none; margin: .9rem 0 0; padding: 0; }
.speaker__topics li {
  position: relative; padding-left: 1rem; margin-bottom: .5rem;
  color: var(--muted); font-size: .89rem; line-height: 1.45; transition: color .3s ease;
}
.speaker__topics li::before { content: "·"; position: absolute; left: 0; top: -.05em; color: var(--lavender-deeper); font-weight: 700; font-size: 1.1em; transition: color .3s ease; }
.speaker__topics li:last-child { margin-bottom: 0; }
.speaker__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.speaker__social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  transition: all .2s;
}
.speaker__social a:hover { background: var(--lavender-deep); color: #fff; border-color: var(--lavender-deep); }
.speaker__social svg { width: 16px; height: 16px; }

/* ---------------------- 10. ACORDEÓN (FAQ) ---------------------- */
/* --- Condiciones de acceso (precios) --- */
.price-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: clamp(1.8rem, 3vw, 2.5rem); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px hsl(246 42% 45% / .14); }
.price-card--featured { border-color: var(--lavender-deep); box-shadow: 0 12px 32px hsl(246 45% 45% / .12); }
.price-card__opt { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lavender-deeper); margin-bottom: 1rem; }
.price-card__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.price-card__amount { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--ink); margin: .5rem 0 1.1rem; letter-spacing: -.02em; line-height: 1; }
.price-card__desc { color: var(--muted); font-size: .97rem; }
.price-card__desc { margin-bottom: 1.5rem; }
.price-card__highlight {
  margin-top: auto; background: var(--lavender-soft); border-radius: var(--r);
  padding: 1.05rem 1.2rem; color: var(--ink); font-size: .92rem; line-height: 1.55;
}
.condiciones-nota { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 2rem; }

.accordion { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-head {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem .2rem; font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600; color: var(--ink);
}
.acc-icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--lavender-deeper); border-radius: 2px; }
.acc-icon::before { top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); }
.acc-icon::after  { left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%); transition: opacity .3s; }
.acc-item.open .acc-icon::after { opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body p { padding: 0 .2rem 1.4rem; color: var(--muted); max-width: 65ch; }

/* ---------------------- 11. FORMULARIO ---------------------- */
.form-section { background: var(--lavender); }
.form-section .section__head { text-align: center; margin-left: auto; margin-right: auto; }
.form-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 30px 70px hsl(246 50% 38% / .18);
}
.form-badge {
  display: inline-block; background: var(--lavender); color: var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.form-benefits { list-style: none; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.form-benefits li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink); font-size: 1rem; }
.form-benefits li svg { width: 20px; height: 20px; color: var(--lavender-deeper); flex: 0 0 auto; margin-top: .15rem; }
.form-divider { height: 1px; background: var(--hairline); margin: 1.9rem 0; }
.form-embed-label { display: block; margin-bottom: 1.2rem; }
/* Contenedor del formulario embebido (iframe GoHighLevel).
   El script de GHL intenta poner el iframe en position:absolute con un ancho en
   píxeles (lo que lo hacía "sangrar" fuera de la tarjeta). Forzándolo a
   position:static queda SIEMPRE en el flujo normal: ni se sale, ni colapsa la
   caja, ni se recorta por abajo. max-width:100% lo limita al ancho de la tarjeta
   y margin:0 auto lo centra. */
#form-embed { width: 100%; max-width: 100%; border-radius: var(--r); text-align: center; }
#form-embed iframe {
  position: static !important;
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  /* El script de GHL a veces fija el iframe a 500/800px y mete el formulario
     (≈998px desktop / ≈1074px móvil) dentro con scroll interno (malo para CRO).
     Forzamos con !important una altura que SIEMPRE supere la del formulario:
     así no hay scroll interno. El sobrante es el iframe transparente mostrando
     la tarjeta blanca (parece padding). El script no usa !important, así que ganamos. */
  height: 1020px !important; min-height: 1020px !important; max-height: none !important;
  border: 0; display: block; margin: 0 auto;
}
@media (max-width: 560px) {
  #form-embed iframe { height: 1100px !important; min-height: 1100px !important; }
}

/* ---------------------- 12. FOOTER (claro, editorial) ---------------------- */
.footer { background: #0e0e13; color: rgba(255,255,255,.55); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer__logo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: #fff; display: block; margin-bottom: 1.1rem; }
.footer__logo img { height: 42px; width: auto; filter: brightness(0) invert(1); }
.footer__brand p { max-width: 340px; font-size: .95rem; color: rgba(255,255,255,.5); }
.footer__social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .2s;
}
.footer__social a:hover { background: var(--lavender-deep); color: var(--ink); border-color: var(--lavender-deep); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col a { display: block; color: rgba(255,255,255,.55); font-size: .95rem; margin-bottom: .7rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; color: rgba(255,255,255,.4); text-align: center; }

/* ---------------------- 13. CTA FLOTANTE (móvil) ---------------------- */
.floating-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  display: none; text-align: center; padding: 1rem; border-radius: 999px;
  background: hsl(249 62% 67%); color: #fff; font-weight: 700;
  box-shadow: 0 10px 30px hsl(246 40% 50% / .3);
}

/* ---------------------- 14. ANIMACIONES ---------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------------------- 15. RESPONSIVE ---------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 360px; margin: 0 auto; }
  .grid--3, .grid--speakers { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .navbar__links { display: none; }
  .navbar .btn { display: none; }
  .grid--2, .grid--3, .grid--speakers { grid-template-columns: 1fr; }
  .floating-cta { display: block; }
  body { padding-bottom: 80px; }
  /* En una sola columna, cada tarjeta toma la altura de su propio texto,
     así que los ponentes con bio/temas más cortos (José, Jesús, Miguel Ángel)
     quedaban con una caja de vídeo más baja y los subtítulos se cortaban.
     Se fija una altura mínima para que el vídeo tenga el mismo tamaño que
     en tarjetas con más texto (Raquel, Francisco). */
  .speaker.is-video-active { min-height: 500px; }
}

@media (max-width: 440px) {
  .grid--4 { grid-template-columns: 1fr 1fr; }
}
