/* css/main.css — estilos compartidos de toda la web (index + publicaciones) */
:root {
  --purple: #5b2178;
  --purple-dark: #3d1454;
  --purple-deep: #2a0d3d;
  --purple-soft: #8b5fad;
  --purple-bg: #f7f4fa;
  --gold: #c99136;
  --gold-soft: #e9c882;
  --white: #ffffff;
  --ink: #221833;
  --gray: #67607a;
  --line: rgba(91,33,120,.14);
  --radius: 20px;
  --ease: cubic-bezier(.22,.9,.24,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--white);
  overflow-x: hidden; line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .t-item h3 { font-family: "Fraunces", Georgia, serif; text-wrap: balance; }
img { max-width: 100%; }
::selection { background: var(--purple); color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Enlace "saltar al contenido": invisible salvo con teclado */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1300;
  background: var(--purple); color: var(--white);
  padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── Barra de progreso ── */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--purple-soft), var(--gold));
  z-index: 1200; border-radius: 0 3px 3px 0;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, padding .3s;
}
/* El blur va en un pseudo: backdrop-filter en el nav lo convertiría en
   containing block y rompería el panel fixed del menú móvil */
nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
nav.scrolled { border-color: var(--line); box-shadow: 0 2px 24px rgba(42,13,61,.07); padding-block: 12px; }
.nav-brand { font-weight: 800; font-size: 1rem; color: var(--purple-dark); letter-spacing: -.01em; text-decoration: none; position: relative; z-index: 1102; }
.nav-brand small { display: block; font-weight: 600; font-size: .66rem; color: var(--gray); letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a:not(.nav-cta) {
  text-decoration: none; color: var(--gray); font-size: .89rem; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; position: relative;
  transition: color .25s, background .25s;
}
.nav-links a:not(.nav-cta):hover { color: var(--purple); background: var(--purple-bg); }
.nav-links a.active { color: var(--purple); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; translate: -50% 0;
  width: 16px; height: 2.5px; border-radius: 2px; background: var(--gold);
}
.nav-cta {
  background: var(--purple); color: var(--white); text-decoration: none;
  padding: 10px 22px; border-radius: 999px; font-size: .89rem; font-weight: 700;
  margin-left: 10px; position: relative; overflow: hidden;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.nav-cta:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(91,33,120,.32); }

.menu-btn {
  display: none; z-index: 1102; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--purple-dark); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1101;
    flex-direction: column; justify-content: center; gap: 10px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.nav-cta) { font-size: 1.25rem; }
  .nav-cta { margin: 18px 0 0; font-size: 1rem; padding: 14px 34px; }
}

/* ── Hero ── */
header#hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.08fr .92fr;
  align-items: center; gap: 4vw;
  /* El alto se ajusta al viewport para que el hero entre entero al cargar:
     sin esto el contenido sobresale y la página parece ya desplazada */
  padding: clamp(92px, 12vh, 140px) 6vw clamp(46px, 7vh, 80px);
  position: relative; overflow: hidden;
  background: var(--white);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: blobFloat 16s ease-in-out infinite alternate;
}
.hero-bg .b1 { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(139,95,173,.35), transparent 65%); }
.hero-bg .b2 { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(91,33,120,.22), transparent 65%); animation-delay: -8s; }
.hero-bg .b3 { width: 260px; height: 260px; left: 42%; top: 8%; background: radial-gradient(circle, rgba(201,145,54,.16), transparent 65%); animation-delay: -4s; }
@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(36px, 26px) scale(1.12); }
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--purple); font-size: .76rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s var(--ease) .1s forwards;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--purple)); }
h1 {
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  line-height: 1.05; letter-spacing: -.01em; font-weight: 700;
  margin-bottom: 26px; color: var(--purple-deep);
}
h1 .w { display: inline-block; opacity: 0; transform: translateY(.55em); animation: wordIn .85s var(--ease) forwards; animation-delay: calc(var(--i) * 65ms + .2s); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
h1 em { font-style: italic; color: var(--purple); }
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 4px;
  z-index: -1; transform: scaleX(0); transform-origin: left;
  animation: hlIn .7s var(--ease) 1.15s forwards;
}
@keyframes hlIn { to { transform: scaleX(1); } }
.hero-sub {
  font-size: 1.08rem; color: var(--gray); max-width: 540px; margin-bottom: 34px;
  opacity: 0; animation: fadeUp .9s var(--ease) .55s forwards;
}
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; opacity: 0; animation: fadeUp .9s var(--ease) .72s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.btn-primary {
  background: var(--purple); color: var(--white);
  text-decoration: none; font-weight: 700; font-family: inherit;
  padding: 16px 34px; border-radius: 999px; font-size: .98rem;
  box-shadow: 0 12px 28px rgba(91,33,120,.28);
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
  display: inline-block; border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%);
  transform: translateX(-130%);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px rgba(91,33,120,.38); }
.btn-primary:hover::after { transition: transform .7s ease; transform: translateX(130%); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-ghost {
  color: var(--purple-dark); text-decoration: none; font-weight: 700;
  padding: 16px 28px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .98rem;
  transition: background .25s, border-color .25s, transform .25s;
  display: inline-block;
}
.btn-ghost:hover { background: var(--purple-bg); border-color: var(--purple); transform: translateY(-2px); }

.hero-proof {
  display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s var(--ease) .9s forwards;
}
.hero-proof .hp strong { display: block; font-family: "Fraunces", serif; font-size: 1.35rem; color: var(--purple); line-height: 1.1; }
.hero-proof .hp span { font-size: .78rem; color: var(--gray); font-weight: 600; }

/* Pantallas bajas (portátiles): el hero se comprime en vez de desbordar */
@media (min-width: 921px) and (max-height: 880px) {
  /* Solo se recortan los huecos verticales: el tamaño del titular y del
     párrafo no cambia, para que el hero no se vea encogido */
  .kicker { margin-bottom: 16px; }
  header#hero h1 { margin-bottom: 18px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-proof { margin-top: 26px; }
}

/* Foto */
.hero-visual { display: flex; justify-content: center; position: relative; perspective: 1000px; }
.avatar-wrap { position: relative; opacity: 0; animation: avatarIn 1.2s var(--ease) .3s forwards; }
@keyframes avatarIn { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
.avatar-tilt { position: relative; transition: transform .35s ease-out; transform-style: preserve-3d; will-change: transform; }
.avatar-ring {
  position: absolute; inset: -16px; border-radius: 50%; z-index: -1;
  /* Las puntas del arco entran y salen muy largas para que el dorado no
     aparezca de golpe sobre el blanco; el grosor del anillo sigue nítido */
  background: conic-gradient(from 0deg, transparent 0 48%, var(--gold-soft) 78%, var(--gold) 86%, transparent 100%);
  animation: ringSpin 12s linear infinite;
}
.avatar-ring.r2 {
  inset: -30px;
  background: conic-gradient(from 180deg, transparent 0 52%, rgba(139,95,173,.55) 84%, transparent 100%);
  animation-duration: 18s; animation-direction: reverse;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.avatar-glow {
  position: absolute; inset: -50px; border-radius: 50%; z-index: -2;
  background: radial-gradient(circle, rgba(139,95,173,.35), transparent 65%);
  filter: blur(46px); animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.avatar-photo {
  width: min(400px, 74vw, 44vh); aspect-ratio: 1; display: block;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 34px 80px rgba(42,13,61,.3);
  background: var(--white);
}
.chip-float {
  position: absolute; background: rgba(255,255,255,.92); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 15px; padding: 13px 18px;
  box-shadow: 0 14px 36px rgba(42,13,61,.15);
  font-size: .84rem; font-weight: 700; color: var(--purple-dark);
  animation: floatChip 6s ease-in-out infinite;
  transform: translateZ(50px);
}
.chip-float small { display: block; font-weight: 600; color: var(--gray); font-size: .74rem; }
.chip-1 { top: 5%; right: -2%; animation-delay: .9s; }
.chip-2 { bottom: 9%; left: -6%; }
@keyframes floatChip { 0%,100% { transform: translateZ(50px) translateY(0); } 50% { transform: translateZ(50px) translateY(-10px); } }

/* Hilo de luz que recorre el contorno de los chips.
   El ángulo se anima en vez de girar el elemento: rotarlo arrastraría la máscara. */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.chip-float::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; padding: 1px;                    /* grosor del hilo */
  --ang: 0deg;                                             /* sin @property queda quieto, no roto */
  background: conic-gradient(from var(--ang), transparent 0 68%, rgba(201,145,54,.9) 84%, transparent 92%);
  /* Vacía el interior: solo sobrevive el marco de 1px */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: chipTrace 18s linear infinite;
}
.chip-2::before { animation-delay: -9s; }                  /* los dos hilos, en lados opuestos */
@keyframes chipTrace { to { --ang: 360deg; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 999px;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.6s forwards;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 4px; height: 8px; border-radius: 4px; background: var(--purple);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 920px) {
  header#hero { grid-template-columns: 1fr; text-align: center; padding: 118px 6vw 60px; gap: 44px; min-height: auto; }
  .kicker { justify-content: center; } .kicker::before { display: none; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  /* Los chips tapan la foto en pantallas estrechas; hero-proof ya muestra esos datos */
  .chip-float { display: none; }
  .avatar-photo { width: min(300px, 68vw); }
  .avatar-ring.r2 { inset: -24px; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  section { padding: 42px 6vw; }
  h1 { font-size: 2.15rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; }
  .hero-proof { gap: 20px; }
  .dos-lados { margin: 0 4vw; padding: 40px 24px; }
  .stats { margin-top: 44px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── Marquee de especialidades ── */
.marquee {
  overflow: hidden; padding: 17px 0;
  background: var(--purple-bg);
  border-block: 1px solid var(--line);
  position: relative; z-index: 2;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 42px; padding-right: 42px; }
.marquee-group span {
  color: var(--purple-dark); font-weight: 700; font-size: .86rem;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  display: flex; align-items: center; gap: 42px;
}
.marquee-group span::after { content: "✦"; color: var(--gold); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Bandas de logos (organizaciones) ── */
#confian { padding-bottom: 34px; }
.logos-band {
  padding: 0 0 62px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
/* Difuminado en los extremos para que los logos entren y salgan */
.logos-band::before, .logos-band::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none;
}
.logos-band::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.logos-band::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.logos-row { overflow: hidden; }
.logos-track {
  display: flex; width: max-content;
  animation: logosScroll 46s linear infinite;
}
.logos-row.reverse .logos-track { animation-direction: reverse; }
.logos-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.logos-group img {
  height: 72px; width: 220px; object-fit: contain; flex: none;
  filter: grayscale(1); opacity: .5;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.logos-group img:hover { filter: none; opacity: 1; transform: scale(1.06); }
/* San Valero llega con mucho margen vacío: compensamos para que pese igual que el resto */
.logos-group img[src*="sanvalero"] { transform: scale(1.18); }
.logos-group img[src*="sanvalero"]:hover { transform: scale(1.24); }
@keyframes logosScroll { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .logos-group { gap: 40px; padding-right: 40px; }
  .logos-group img { height: 54px; width: 164px; }
}

/* ── Logo LHH ── */
.lhh-svg { height: 1em; width: auto; display: inline-block; vertical-align: -.08em; }
/* Dentro de un párrafo el logo hace de palabra: los rectángulos macizos pesan más
   que el texto, así que va algo menor y con aire a los lados para no pegarse */
p .lhh-svg { height: .72em; margin: 0 .32em; vertical-align: baseline; }

/* ── Secciones ── */
section { scroll-margin-top: 90px; }
section { padding: 58px 6vw; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--purple); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .22em; margin-bottom: 16px;
}
.section-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 700; letter-spacing: -.01em; color: var(--purple-deep); margin-bottom: 18px; line-height: 1.12; }
.section-intro { color: var(--gray); max-width: 620px; font-size: 1.05rem; }

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.left { transform: translateX(-48px); }
.reveal.right { transform: translateX(48px); }
.reveal.zoom { transform: scale(.92) translateY(20px); }
.reveal.visible { opacity: 1; transform: none; }

.icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--purple-bg); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--purple);
  transition: background .35s, color .35s, transform .45s var(--ease);
}
.icon svg { width: 22px; height: 22px; }

/* Sobre ella */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 34px; }
.about-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.about-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-soft), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.about-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(42,13,61,.12); border-color: rgba(91,33,120,.28); }
.about-card:hover::before { transform: scaleX(1); }
.about-card:hover .icon { background: var(--purple); color: var(--white); transform: scale(1.08) rotate(-4deg); }
.about-card h3 { font-size: 1.08rem; margin: 18px 0 8px; font-weight: 800; }
.about-card p { color: var(--gray); font-size: .94rem; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; margin-top: 40px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--white); padding: 36px 26px; text-align: center; transition: background .35s; }
.stat:hover { background: var(--purple-bg); }
.stat .num {
  font-family: "Fraunces", serif; font-size: 2.6rem; font-weight: 700;
  background: linear-gradient(120deg, var(--purple), var(--purple-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .num sup { font-size: 1.2rem; }
.stat .lbl { color: var(--gray); font-size: .88rem; margin-top: 2px; }

@keyframes ringDrift { to { transform: translate(-24px, 18px) scale(1.06); } }

/* Los dos lados de la misma mesa */
.dos-lados {
  background: linear-gradient(115deg, var(--purple-deep), var(--purple-dark) 55%, var(--purple));
  color: var(--white); border-radius: 24px; padding: 42px 48px;
  margin: 0 6vw; position: relative; overflow: hidden;
}
/* La foto va fija al viewport: al hacer scroll la sección la recorre de arriba abajo
   mientras la imagen se queda quieta. Va desenfocada y en luminosity para que se lea
   como textura morada y el texto de las diapositivas no compita con el de la sección. */
.dos-lados::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/valentina-sesion-2.jpg") center 25% / cover fixed no-repeat;
  filter: blur(3px) saturate(.5);
  mix-blend-mode: luminosity; opacity: .28;
}
/* iOS/Android ignoran background-attachment: fixed; ahí la foto se ancla al bloque */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .dos-lados::before { background-attachment: scroll; }
}

.dos-lados h2 {
  position: relative; color: var(--white); font-size: clamp(1.45rem, 3vw, 1.95rem);
  text-align: center; margin-bottom: 26px;
}

.mesa {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: stretch; gap: 0; margin: 0 auto 24px; max-width: 880px;
}
.mesa-nodo {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 15px 20px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.mesa-nodo strong { font-weight: 800; font-size: 1.02rem; }
.mesa-nodo span { font-size: .84rem; color: rgba(255,255,255,.72); }
.mesa-nodo.centro {
  background: rgba(233,200,130,.14); border-color: var(--gold-soft);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.mesa-nodo.centro strong { color: var(--gold-soft); font-size: 1.12rem; }
.mesa-nodo.centro span { color: rgba(255,255,255,.85); }

/* Flecha: línea + punta, apuntando siempre hacia el nodo central */
.mesa-flecha { display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.mesa-flecha i {
  display: block; position: relative; width: 100%; min-width: 34px;
  height: 1px; background: rgba(255,255,255,.45);
}
.mesa-flecha i::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px;
  border-top: 1px solid rgba(255,255,255,.6); border-right: 1px solid rgba(255,255,255,.6);
  transform: translateY(-50%) rotate(45deg);
}
.mesa-flecha.inv i::after { right: auto; left: 0; transform: translateY(-50%) rotate(225deg); }

.mesa-pie {
  grid-column: 1 / -1; margin-top: 20px; padding-top: 16px; text-align: center;
  font-size: .9rem; color: rgba(255,255,255,.72);
  border-top: 1px dashed rgba(255,255,255,.28);
}

.dos-lados-texto { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
.dos-lados-texto p { color: rgba(255,255,255,.84); font-size: .96rem; }
.dos-lados-texto p + p { margin-top: 14px; }
.dos-lados-texto strong { color: var(--gold-soft); }

@media (max-width: 800px) {
  .dos-lados { padding: 36px 22px; }
  .mesa { grid-template-columns: 1fr; }
  .mesa-flecha { padding: 14px 0; height: 34px; }
  .mesa-flecha i { width: 1px; min-width: 0; height: 100%; margin: 0 auto; }
  .mesa-flecha i::after {
    right: auto; left: 50%; top: auto; bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }
  .mesa-flecha.inv i::after {
    left: 50%; bottom: auto; top: 0;
    transform: translateX(-50%) rotate(-45deg);
  }
}

/* ── Timeline ── */
.timeline {
  margin-top: 38px; position: relative; padding-left: var(--pad); max-width: 780px;
  /* Eje compartido: la línea y los puntos se centran sobre esta x.
     --pad y --dot-top los lee también main.js para cuadrar la línea con los puntos */
  --pad: 40px; --line-x: 11.5px; --dot: 21px; --dot-top: 6px;
}
.timeline .track {
  position: absolute; left: calc(var(--line-x) - 1.5px); top: 8px; bottom: 8px; width: 3px;
  background: var(--line); border-radius: 3px;
}
.timeline .fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(var(--purple-soft), var(--purple), var(--gold));
  border-radius: 3px;
}
/* Cabeza luminosa que recorre la línea */
.timeline .fill::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; translate: -50% 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold));
  box-shadow: 0 0 14px 4px rgba(201,145,54,.5);
  opacity: 0; transition: opacity .3s;
}
.timeline.started .fill::after { opacity: 1; }
.t-item { position: relative; padding-bottom: 46px; }
.t-item:last-child { padding-bottom: 0; }
/* El punto queda siempre anclado a la línea: solo se anima el contenido */
.t-item .t-tag, .t-item h3, .t-item p {
  opacity: .35; transform: translateX(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.t-item h3 { transition-delay: .06s; }
.t-item p { transition-delay: .12s; }
.t-item.active .t-tag, .t-item.active h3, .t-item.active p { opacity: 1; transform: none; }
.t-item::before {
  content: ""; position: absolute; box-sizing: border-box;
  left: calc(var(--line-x) - var(--dot) / 2 - var(--pad)); top: var(--dot-top);
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--white); border: 3px solid rgba(91,33,120,.25);
  transform: scale(.7);
  transition: border-color .4s, background .4s, box-shadow .4s, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.t-item.active::before {
  border-color: var(--purple);
  background: var(--gold-soft);
  box-shadow: 0 0 0 6px rgba(91,33,120,.12);
  transform: scale(1.15);
}
/* Onda expansiva al activarse */
.t-item::after {
  content: ""; position: absolute; box-sizing: border-box;
  left: calc(var(--line-x) - var(--dot) / 2 - var(--pad)); top: var(--dot-top);
  width: var(--dot); height: var(--dot); border-radius: 50%;
  border: 2px solid var(--purple-soft); opacity: 0; pointer-events: none;
}
.t-item.active::after { animation: ripple .8s ease-out; }
@keyframes ripple {
  0% { opacity: .8; transform: scale(.7); }
  100% { opacity: 0; transform: scale(2.8); }
}
.t-item .t-tag { font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .16em; }
.t-item h3 { font-size: 1.28rem; margin: 6px 0 6px; font-weight: 700; color: var(--purple-deep); }
.t-item p { color: var(--gray); font-size: .95rem; max-width: 640px; }

/* Sesiones */
#sesiones { background: linear-gradient(180deg, var(--white), var(--purple-bg) 16%, var(--purple-bg) 62%, var(--white)); }
.talks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 34px; }
.talk {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column;
}
.talk::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.talk:hover { transform: translateY(-9px); box-shadow: 0 24px 54px rgba(42,13,61,.14); }
.talk:hover::after { transform: scaleX(1); }
.talk:hover .icon { background: var(--purple); color: var(--white); transform: scale(1.08) rotate(4deg); }
.talk h3 { font-size: 1.12rem; margin: 20px 0 8px; font-weight: 800; }
.talk p { color: var(--gray); font-size: .92rem; }
.talk-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 18px;
  color: var(--purple); font-weight: 700; font-size: .86rem;
}
.talk-more svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.talk:hover .talk-more svg { transform: translateX(4px); }

/* ── Ventana de detalle de cada pilar ── */
.modal { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 4vh 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,8,30,.6); backdrop-filter: blur(3px); animation: modalFade .25s ease; }
.modal-panel {
  position: relative; width: min(460px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--white); border-radius: 24px; padding: 38px 34px 34px;
  box-shadow: 0 40px 90px rgba(20,8,30,.35);
  animation: modalIn .32s var(--ease);
}
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-panel { animation: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  display: grid; place-items: center; border: none; border-radius: 50%;
  background: var(--purple-bg); color: var(--purple-deep); cursor: pointer;
  transition: background .25s, transform .25s;
}
.modal-close:hover { background: var(--purple); color: var(--white); transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }
.modal-kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.modal-panel h3 { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--purple-deep); line-height: 1.2; }
.modal-body .lead { color: var(--gray); font-size: .95rem; margin: 12px 0 22px; }
.modal-body h4 {
  font-size: .95rem; font-weight: 800; color: var(--ink); margin-bottom: 10px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.modal-body ul { list-style: none; display: grid; gap: 7px; }
.modal-body li { position: relative; padding-left: 18px; font-size: .9rem; color: var(--gray); }
.modal-body li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}
.modal-body .se-llevan { margin-top: 10px; font-size: .86rem; color: var(--purple); }
.modal-cta { margin-top: 26px; width: 100%; justify-content: center; text-align: center; }
body.modal-open { overflow: hidden; }
.talk .n { position: absolute; top: 22px; right: 26px; font-family: "Fraunces", serif; font-size: 1.7rem; color: rgba(91,33,120,.14); font-weight: 700; transition: color .35s; }
.talk:hover .n { color: rgba(201,145,54,.5); }

/* ── Banda de publicaciones (index) ── */
.pubs-band {
  margin-top: 40px;
  background: linear-gradient(115deg, var(--purple-deep), var(--purple-dark) 60%, var(--purple));
  color: var(--white); border-radius: 24px; padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 34px;
  position: relative; overflow: hidden; flex-wrap: wrap;
}
.pubs-band::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1); right: -140px; top: -140px;
  animation: ringDrift 12s ease-in-out infinite alternate;
}
.pubs-band h3 { font-family: "Fraunces", serif; font-size: 1.45rem; margin-bottom: 8px; }
.pubs-band p { color: rgba(255,255,255,.8); max-width: 520px; font-size: .95rem; }
.btn-gold {
  background: linear-gradient(105deg, var(--gold), var(--gold-soft));
  color: var(--purple-deep); text-decoration: none; font-weight: 800;
  padding: 16px 32px; border-radius: 999px; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  box-shadow: 0 12px 30px rgba(201,145,54,.35);
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative; z-index: 1;
}
.btn-gold svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn-gold:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px rgba(201,145,54,.45); }
.btn-gold:hover svg { transform: translateX(4px); }
@media (max-width: 700px) { .pubs-band { padding: 36px 28px; text-align: center; justify-content: center; } }

/* Formatos */
.formats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 34px; }
.format {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 30px; background: var(--white); position: relative;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.format:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(42,13,61,.13); }
.format.featured {
  background: linear-gradient(160deg, var(--purple-dark), var(--purple));
  border-color: transparent; color: var(--white);
  box-shadow: 0 24px 55px rgba(61,20,84,.35);
}
.format .badge {
  position: absolute; top: -13px; right: 22px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); color: var(--purple-deep);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(201,145,54,.4);
}
.format .dur {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple); background: var(--purple-bg);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.format.featured .dur { color: var(--white); background: rgba(255,255,255,.15); }
.format h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.format > p { color: var(--gray); font-size: .93rem; }
.format.featured > p { color: rgba(255,255,255,.82); }
.format ul { list-style: none; margin-top: 20px; }
.format li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: .9rem; color: var(--gray); }
.format.featured li { color: rgba(255,255,255,.85); }
.format li::before {
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--purple-bg);
  transition: transform .4s var(--ease), background .4s;
}
.step:hover { transform: translateY(-5px); background: var(--white); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 700;
  background: linear-gradient(120deg, var(--purple), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 10px;
}
.step strong { display: block; margin-bottom: 4px; }
.step p { color: var(--gray); font-size: .9rem; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 34px; }
.quote {
  background: var(--white); border-radius: var(--radius); padding: 34px 32px;
  border: 1px solid var(--line); position: relative;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.quote:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(42,13,61,.1); }
.quote::before {
  content: "\201C"; font-family: "Fraunces", serif; font-size: 4.4rem; line-height: 1;
  color: var(--gold-soft); position: absolute; top: 12px; left: 22px;
}
.quote p { position: relative; font-style: italic; color: var(--ink); padding-top: 22px; }
.quote footer { margin-top: 16px; color: var(--purple); font-weight: 700; font-size: .82rem; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.quote footer::before { content: ""; width: 18px; height: 2px; background: var(--gold); }

/* Por qué elegirla */
#porque { background: linear-gradient(180deg, var(--white), var(--purple-bg)); padding-top: 44px; }
#testimonios { padding-bottom: 36px; }
.why-list { margin-top: 34px; display: grid; gap: 14px; max-width: 840px; }
.why-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border-radius: 18px; padding: 26px 28px;
  border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.why-item:hover { border-color: rgba(91,33,120,.35); box-shadow: 0 14px 34px rgba(42,13,61,.09); transform: translateX(6px); }
.why-item:hover .icon { background: var(--purple); color: var(--white); }
.why-item strong { display: block; margin-bottom: 3px; font-size: 1.02rem; }
.why-item p { color: var(--gray); font-size: .93rem; }

/* ── FAQ ── */
#faq { background: var(--purple-bg); }
.faq-list { margin-top: 34px; max-width: 840px; display: grid; gap: 12px; }
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .3s, box-shadow .3s;
}
details.faq[open] { border-color: rgba(91,33,120,.3); box-shadow: 0 12px 30px rgba(42,13,61,.08); }
details.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-family: "Fraunces", serif; font-size: 1.5rem; line-height: 1;
  color: var(--purple); flex-shrink: 0; transition: rotate .35s var(--ease);
}
details.faq[open] summary::after { rotate: 45deg; }
.faq-body { padding: 0 24px 20px; color: var(--gray); font-size: .95rem; max-width: 720px; }
details.faq[open] .faq-body { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* La altura la anima main.js: recortar el contenido mientras crece o encoge */
details.faq { overflow: hidden; }

/* ── Agendar ── */
.agendar-bg { background: var(--purple-bg); }
#agendar {
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(139,95,173,.32), transparent),
    linear-gradient(180deg, var(--purple-deep), var(--purple-dark));
  color: var(--white); border-radius: 40px 40px 0 0;
  padding-top: 68px; padding-bottom: 76px;
  position: relative; overflow: hidden;
}
#agendar::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07); left: -200px; bottom: -260px;
  animation: ringDrift 14s ease-in-out infinite alternate;
}
#agendar .section-label { color: var(--gold-soft); }
#agendar .section-label::before { background: var(--gold); }
#agendar h2 { color: var(--white); }
#agendar .section-intro { color: rgba(255,255,255,.78); }
.form-card {
  margin: 36px auto 0; max-width: 620px; position: relative;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 24px; padding: 42px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 30px 22px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: rgba(255,255,255,.85); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.96);
  color: var(--ink); font-size: .95rem; font-family: inherit;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 4px rgba(201,145,54,.3);
  transform: translateY(-1px);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-card .btn-primary { width: 100%; margin-top: 10px; font-size: 1.05rem; padding: 18px; background: var(--purple); }
.form-card .btn-primary:hover { background: var(--purple-soft); }
.form-note { text-align: center; font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 14px; transition: color .3s; }
.form-note.ok { color: var(--gold-soft); font-weight: 700; font-size: .92rem; }
.form-note.err { color: #ff9d9d; font-weight: 600; }
.form-card .btn-primary:disabled { opacity: .7; cursor: default; transform: none; }

/* Contacto directo bajo el formulario */
.contacto-directo { max-width: 620px; margin: 30px auto 0; position: relative; text-align: center; }
.cd-title {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.cd-title::before, .cd-title::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.cd-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cd-links a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: var(--white); text-decoration: none;
  font-weight: 700; font-size: .92rem; letter-spacing: -.01em;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.cd-links a svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }
.cd-links a:hover { transform: translateY(-2px); background: rgba(255,255,255,.13); border-color: var(--gold-soft); }
@media (max-width: 560px) {
  .cd-links { flex-direction: column; }
  .cd-links a { justify-content: center; font-size: .86rem; padding: 13px 16px; }
}

/* Footer */
footer.page-footer {
  background: var(--purple-deep); color: rgba(255,255,255,.65);
  padding: 64px 6vw 28px; font-size: .9rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
footer.page-footer a { color: var(--purple-soft); text-decoration: none; font-weight: 600; transition: color .2s; }
footer.page-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; max-width: 1100px; margin-inline: auto; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.footer-brand p { font-size: .88rem; max-width: 340px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .78rem; color: rgba(255,255,255,.4);
  max-width: 1100px; margin-inline: auto;
}

/* Volver arriba */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 1100;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--purple); color: var(--white); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(91,33,120,.35);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .35s, transform .35s var(--ease), background .25s;
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { background: var(--purple-dark); }
#toTop svg { width: 18px; height: 18px; }

/* Acceso al LinkedIn: esquina opuesta al botón de volver arriba */
#liFab {
  position: fixed; left: 22px; bottom: 22px; z-index: 1100;
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--purple-deep); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: .87rem; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(42,13,61,.32);
  transition: transform .3s var(--ease), background .25s;
  -webkit-tap-highlight-color: transparent;
}
#liFab:hover { transform: translateY(-2px); background: var(--purple); }
/* Onda morada periódica: llama la atención sobre el botón cada 15 s */
#liFab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--purple-soft); opacity: 0; pointer-events: none;
  animation: liPing 15s ease-out infinite;
}
@keyframes liPing {
  0%   { transform: scale(1);    opacity: .65; }
  8%   { transform: scale(1.35); opacity: 0; }
  10%  { transform: scale(1);    opacity: .5; }
  18%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1);    opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { #liFab::before { animation: none; } }
#liFab svg { width: 19px; height: 19px; flex: none; }
@media (max-width: 640px) {
  #liFab { left: 16px; bottom: 16px; padding: 0; width: 46px; justify-content: center; }
  #liFab span { display: none; }
}

/* ══ Página de publicaciones ══ */
.page-hero {
  padding: 158px 6vw 30px; text-align: center;
  position: relative; overflow: hidden; background: var(--white);
}
.page-hero .kicker { justify-content: center; }
.page-hero .kicker::before { display: none; }
.page-hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.page-hero .hero-sub { margin-inline: auto; max-width: 600px; }
.page-hero .hero-actions { justify-content: center; }

#pubs { background: linear-gradient(180deg, var(--white), var(--purple-bg) 18%, var(--purple-bg) 82%, var(--white)); min-height: 46vh; }

/* Filtros por tipo */
.chips-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.chip-filter {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-family: inherit; font-weight: 700; font-size: .85rem;
  color: var(--gray); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.chip-filter:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }
.chip-filter.on { background: var(--purple); color: var(--white); border-color: var(--purple); }

/* Grid de tarjetas */
.pubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.pub-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; position: relative;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
  opacity: 0; transform: translateY(30px);
  animation: cardIn .7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
a.pub-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(42,13,61,.13); border-color: rgba(91,33,120,.3); }
.pub-media { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--purple-bg); }
.pub-media-ph {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple-bg), #ede4f6 55%, #f8efdd);
  color: var(--purple-soft);
}
.pub-media-ph svg { width: 44px; height: 44px; opacity: .8; }
.pub-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pub-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pub-type {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-bg); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px;
}
.pub-date { font-size: .78rem; color: var(--gray); font-weight: 600; }
.pub-card h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.35; color: var(--purple-deep); }
.pub-desc {
  color: var(--gray); font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-more {
  margin-top: auto; padding-top: 10px;
  color: var(--purple); font-weight: 700; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.pub-more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
a.pub-card:hover .pub-more svg { transform: translateX(4px); }

/* Tarjeta abrible (vídeo, carrusel, presentación): portada + botón de play */
.pub-thumb { position: relative; display: block; }
.pub-thumb .pub-media { margin: 0; }
/* Las portadas verticales se recortan por arriba: ahí está el titular */
.pub-thumb.vertical .pub-media { object-position: top; }
.pub-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(42,13,61,.05), rgba(42,13,61,.42));
  transition: background .4s var(--ease);
}
.pub-play span {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(42,13,61,.35);
  transition: transform .4s var(--ease), background .3s;
}
.pub-play svg { width: 26px; height: 26px; margin-left: 3px; }
a.pub-card:hover .pub-play { background: linear-gradient(180deg, rgba(42,13,61,.12), rgba(42,13,61,.5)); }
a.pub-card:hover .pub-play span { transform: scale(1.1); background: var(--white); }
.pub-duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(42,13,61,.82); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 6px;
}

/* Visor de vídeo (modal) */
.video-modal { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(20,6,30,.78); backdrop-filter: blur(6px); animation: vmFade .3s var(--ease); }
.vm-panel {
  position: relative; width: min(940px, 100%);
  background: var(--purple-deep); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: vmIn .45s var(--ease);
}
@keyframes vmFade { from { opacity: 0; } }
@keyframes vmIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.vm-frame { width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 200px); background: #000; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Documentos verticales (carruseles): panel más estrecho y alto */
.video-modal.vertical .vm-panel { width: min(560px, 100%); }
.video-modal.vertical .vm-frame { aspect-ratio: 1080 / 1351; }
/* Galería de fotos: las tomas mezclan 4:3 y cuadrado, cabe con 4/3 */
.video-modal.galeria .vm-panel { width: min(820px, 100%); }
.video-modal.galeria .vm-frame { aspect-ratio: 4 / 3; background: #120520; }

/* Carrusel de láminas */
.carrusel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.car-track {
  display: flex; height: 100%;
  transition: transform .45s var(--ease);
  touch-action: pan-y;
}
.car-track img {
  flex: none; width: 100%; height: 100%; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--purple-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: background .25s, opacity .25s, transform .25s;
}
.car-nav svg { width: 20px; height: 20px; }
.car-nav.prev { left: 14px; }
.car-nav.next { right: 14px; transform: translateY(-50%) rotate(180deg); }
.car-nav:hover:not(:disabled) { background: var(--white); }
.car-nav:disabled { opacity: 0; pointer-events: none; }
.car-count {
  /* A la izquierda: arriba a la derecha está el botón de cerrar */
  position: absolute; top: 14px; left: 14px;
  background: rgba(20,6,30,.72); color: var(--white);
  font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
}
.car-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 7px;
}
.car-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.45);
  transition: background .25s, transform .25s;
}
.car-dot.on { background: var(--white); transform: scale(1.35); }
/* Pie de foto: se superpone al borde inferior, encima de los puntos */
.car-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 30px;
  background: linear-gradient(180deg, transparent, rgba(12,3,20,.88));
  color: rgba(255,255,255,.92); font-size: .86rem; line-height: 1.5;
  text-align: center; pointer-events: none;
}
.video-modal.galeria .car-dots { bottom: 8px; z-index: 1; }
@media (max-width: 560px) {
  .car-nav { width: 36px; height: 36px; }
  .car-nav.prev { left: 8px; }
  .car-nav.next { right: 8px; }
  .car-cap { padding: 34px 14px 26px; font-size: .78rem; }
}
.vm-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; flex-wrap: wrap; }
.vm-foot h3 { color: var(--white); font-size: 1rem; font-weight: 700; line-height: 1.4; flex: 1; min-width: 200px; }
.vm-yt {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--purple-deep);
  padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: transform .3s var(--ease), background .3s;
}
.vm-yt[hidden] { display: none; }
.vm-yt svg { width: 20px; height: 20px; color: var(--purple); }
.video-modal:not(.doc) .vm-yt svg { color: #ff0033; }
.vm-yt:hover { transform: translateY(-2px); background: var(--gold-soft); }
.vm-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20,6,30,.6); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.vm-close svg { width: 20px; height: 20px; }
.vm-close:hover { background: rgba(20,6,30,.9); transform: rotate(90deg); }
body.vm-open { overflow: hidden; }
@media (max-width: 560px) {
  .video-modal { padding: 14px; }
  .vm-foot { padding: 16px; }
  .vm-yt { width: 100%; justify-content: center; }
}

/* Esqueletos de carga */
.sk-card { pointer-events: none; }
.sk-media, .sk-line {
  background: linear-gradient(100deg, #efe9f5 40%, #f9f6fc 50%, #efe9f5 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk-media { width: 100%; aspect-ratio: 16/9; }
.sk-line { height: 13px; border-radius: 8px; }
.sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; } .sk-line.w60 { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Estados: vacío / pendiente de configurar / error */
.pubs-state {
  max-width: 560px; margin: 10px auto 0; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 54px 40px;
  box-shadow: 0 18px 44px rgba(42,13,61,.07);
}
.pubs-state .state-icon {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-bg), #f8efdd);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
}
.pubs-state .state-icon svg { width: 32px; height: 32px; }
.pubs-state h3 { font-family: "Fraunces", serif; font-size: 1.45rem; color: var(--purple-deep); margin-bottom: 10px; }
.pubs-state p { color: var(--gray); font-size: .95rem; }
.pubs-state code {
  background: var(--purple-bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 8px; font-size: .84rem; color: var(--purple-dark);
}
.pubs-state .btn-primary { margin-top: 22px; }
@media (max-width: 520px) { .pubs-state { padding: 40px 24px; } }

/* Accesibilidad: sin animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .kicker, .hero-sub, .hero-actions, .hero-proof, .avatar-wrap, h1 .w,
  .t-item .t-tag, .t-item h3, .t-item p, .pub-card { opacity: 1 !important; transform: none !important; }
  .marquee-track, .logos-track { animation: none !important; }
}
