/* ══════════════════════════════════════════════════════════════════════════
   Grupo Educar — Hero Carrusel v2 (fase 1)
   Paleta DIGITAL de la guia grafica, solo dentro de .hero-carousel.
   6 slides + barra fija de areas. Movimiento: solo transform / opacity.
   ══════════════════════════════════════════════════════════════════════════ */

.hero-carousel {
  --hero-ms: 8000ms;
  --ge-d-green:  #C1C11F;
  --ge-d-teal:   #4DADA1;
  --ge-d-blue:   #0A729B;
  --ge-d-red:    #F73D34;
  --ge-d-orange: #FF9929;
  --ge-d-green2: #3F9C36;
  --ge-d-red-claro: #E87474; /* Material: version suave de --ge-d-red, de la paleta "digital claro" de la guia */
  --ge-d-navy:   #12232E;

  position: relative;
  overflow: hidden;
  padding: 0;
  color: var(--s-fg);
  background: var(--s-bg);
  transition: background-color .5s ease, color .5s ease;
}

/* ── Variables por slide (la barra hereda las de la slide activa via data-active) ── */
.hero-slide--institucional, .hero-carousel[data-active="institucional"] {
  --s-bg: var(--ge-d-blue); --s-fg: #fff;
  --s-cap-bg: var(--ge-d-green); --s-cap-fg: var(--ge-d-navy);
  --s-btn-bg: var(--ge-d-green); --s-btn-fg: var(--ge-d-navy);
  --s-tint: rgba(255,255,255,.16);
  --s-b1: var(--ge-d-green); --s-b2: var(--ge-d-teal); --s-b3: #fff;
}
.hero-slide--revista, .hero-carousel[data-active="revista"] {
  --s-bg: var(--ge-d-navy); --s-fg: #fff;
  --s-cap-bg: var(--ge-d-green); --s-cap-fg: var(--ge-d-navy);
  --s-btn-bg: var(--ge-d-green); --s-btn-fg: var(--ge-d-navy);
  --s-tint: rgba(255,255,255,.14);
  --s-b1: var(--ge-d-blue); --s-b2: var(--ge-d-teal); --s-b3: var(--ge-d-green);
}
.hero-slide--podcast, .hero-carousel[data-active="podcast"] {
  --s-bg: var(--ge-d-teal); --s-fg: var(--ge-d-navy);
  --s-cap-bg: var(--ge-d-navy); --s-cap-fg: #fff;
  --s-btn-bg: var(--ge-d-navy); --s-btn-fg: #fff;
  --s-tint: rgba(18,35,46,.14);
  --s-b1: #fff; --s-b2: var(--ge-d-blue); --s-b3: var(--ge-d-green);
}
.hero-slide--seminarios, .hero-carousel[data-active="seminarios"] {
  --s-bg: var(--ge-d-green); --s-fg: var(--ge-d-navy);
  --s-cap-bg: var(--ge-d-navy); --s-cap-fg: var(--ge-d-green);
  --s-btn-bg: var(--ge-d-navy); --s-btn-fg: #fff;
  --s-tint: rgba(18,35,46,.14);
  --s-b1: #fff; --s-b2: var(--ge-d-green2); --s-b3: var(--ge-d-blue);
}
.hero-slide--noticias, .hero-carousel[data-active="noticias"] {
  --s-bg: var(--ge-d-orange); --s-fg: var(--ge-d-navy);
  --s-cap-bg: var(--ge-d-navy); --s-cap-fg: #fff;
  --s-btn-bg: var(--ge-d-navy); --s-btn-fg: #fff;
  --s-tint: rgba(18,35,46,.14);
  --s-b1: #fff; --s-b2: var(--ge-d-red); --s-b3: var(--ge-d-green);
}
.hero-slide--capacitaciones, .hero-carousel[data-active="capacitaciones"] {
  --s-bg: var(--ge-d-green2); --s-fg: var(--ge-d-navy);
  --s-cap-bg: var(--ge-d-navy); --s-cap-fg: #fff;
  --s-btn-bg: var(--ge-d-navy); --s-btn-fg: #fff;
  --s-tint: rgba(18,35,46,.14);
  --s-b1: #fff; --s-b2: var(--ge-d-green); --s-b3: var(--ge-d-blue);
}
.hero-slide--material, .hero-carousel[data-active="material"] {
  --s-bg: var(--ge-d-red-claro); --s-fg: var(--ge-d-navy);
  --s-cap-bg: var(--ge-d-navy); --s-cap-fg: #fff;
  --s-btn-bg: var(--ge-d-navy); --s-btn-fg: #fff;
  --s-tint: rgba(18,35,46,.14);
  --s-b1: #fff; --s-b2: var(--ge-d-green); --s-b3: var(--ge-d-blue);
}

/* ── Pista y slides: todas en la misma celda de una grilla → la altura es la de la slide mas alta ── */
.hero-track { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 540px;
  padding: 56px 0 112px;
  background-color: var(--s-bg);
  color: var(--s-fg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
  touch-action: pan-y;
}
.hero-slide.activo {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility 0s;
  z-index: 1;
}
.hero-slide > .container { position: relative; z-index: 2; width: 100%; }
.hero-carousel .hero-overlay { position: absolute; inset: 0; background: rgba(18,35,46,.72); z-index: 1; }

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
/* Si la slide no tiene imagen (hero-visual ausente), el texto ocupa todo el ancho en vez de dejar un hueco */
.hero-wrap:not(:has(.hero-visual)) { grid-template-columns: 1fr; }

/* ── Blobs animados (morph por border-radius + deriva) ── */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-blob {
  position: absolute;
  opacity: .22;
  translate: calc(var(--mx, 0) * var(--d, 24) * 1px) calc(var(--my, 0) * var(--d, 24) * 1px);
  will-change: transform;
  transition: translate .45s ease-out;
}
.hero-blob--1 { --d: 30; width: 340px; height: 340px; left: -90px; top: -100px; background: var(--s-b1);
  border-radius: 60% 40% 55% 45%; animation: heroMorphA 16s ease-in-out infinite alternate; }
.hero-blob--2 { --d: 18; width: 240px; height: 240px; left: 44%; top: -110px; background: var(--s-b2);
  border-radius: 50%; animation: heroDrift 20s ease-in-out infinite alternate; }
.hero-blob--3 { --d: 42; width: 420px; height: 420px; right: -120px; bottom: -140px; background: var(--s-b3); opacity: .2;
  border-radius: 45% 55% 50% 50%; animation: heroMorphB 18s ease-in-out infinite alternate; }
@keyframes heroMorphA {
  0%   { border-radius: 60% 40% 55% 45%; transform: rotate(0deg) scale(1); }
  100% { border-radius: 42% 58% 38% 62%; transform: rotate(35deg) scale(1.08); }
}
@keyframes heroMorphB {
  0%   { border-radius: 45% 55% 50% 50%; transform: rotate(0deg); }
  100% { border-radius: 58% 42% 62% 38%; transform: rotate(-30deg) scale(1.06); }
}
@keyframes heroDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-40px,30px,0) scale(1.15); }
}

/* ── Texto ── */
.hero-carousel .hero-chip {
  display: inline-flex;
  align-items: center;
  background: var(--s-cap-bg);
  color: var(--s-cap-fg);
  font-family: var(--font-title, 'Raleway', Arial, sans-serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .01em;
  line-height: 1;
  padding: 9px 18px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero-carousel .hero-h {
  font-family: var(--font-title, 'Raleway', Arial, sans-serif);
  font-weight: 900;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--s-fg);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-shadow: none;
}
.hero-carousel .hero-text {
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--s-fg);
  opacity: .94;
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-logo { display: block; width: 300px; max-width: 70%; height: auto; margin: 0 0 22px; }

/* Revelado palabra por palabra */
.hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hw > span { display: inline-block; transform: translateY(110%); }
.hero-slide.activo .hw > span {
  transform: none;
  transition: transform .75s cubic-bezier(.2,.8,.2,1) calc(.3s + var(--i, 0) * .06s);
}

/* Entrada escalonada: cápsula → titular (arriba) → texto → botones */
.hero-chip, .hero-text, .hero-actions, .hero-logo { opacity: 0; transform: translateY(14px); }
.hero-slide.activo .hero-chip    { opacity: 1; transform: none; transition: opacity .5s ease .05s, transform .5s ease .05s; }
.hero-slide.activo .hero-logo    { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.hero-slide.activo .hero-text    { opacity: .94; transform: none; transition: opacity .6s ease .6s, transform .6s ease .6s; }
.hero-slide.activo .hero-actions { opacity: 1; transform: none; transition: opacity .6s ease .75s, transform .6s ease .75s; }

/* ── Botones (CTA) ── */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-carousel a.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-title, 'Raleway', Arial, sans-serif);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.hero-carousel a.hero-btn svg { transition: transform .25s ease; flex: none; }
.hero-carousel a.hero-btn--primary {
  background: var(--s-btn-bg);
  color: var(--s-btn-fg);
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.hero-carousel a.hero-btn--primary:hover,
.hero-carousel a.hero-btn--primary:focus-visible {
  color: var(--s-btn-fg);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}
.hero-carousel a.hero-btn--primary:hover svg,
.hero-carousel a.hero-btn--primary:focus-visible svg { transform: translateX(4px); }
.hero-carousel a.hero-btn--ghost {
  background: transparent;
  color: var(--s-fg);
  box-shadow: inset 0 0 0 2px currentColor;
}
.hero-carousel a.hero-btn--ghost:hover,
.hero-carousel a.hero-btn--ghost:focus-visible {
  color: var(--s-fg);
  background: var(--s-tint);
  transform: translateY(-3px);
}
.hero-carousel a.hero-btn:focus-visible,
.hero-cap:focus-visible,
.hero-ctrl:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ── Zona visual ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  opacity: 0;
  translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 8px);
}
.hero-slide.activo .hero-visual { opacity: 1; transition: opacity .7s ease .2s, translate .45s ease-out; }

.hero-badge {
  position: absolute;
  top: 6%;
  right: 4%;
  background: var(--s-cap-bg);
  color: var(--s-cap-fg);
  font-family: var(--font-title, 'Raleway', Arial, sans-serif);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(.6);
}
.hero-slide.activo .hero-badge { opacity: 1; transform: none; transition: opacity .4s ease .9s, transform .6s cubic-bezier(.34,1.56,.64,1) .9s; }

/* Revista: portada inclinada con “hojeo” */
.hero-cover { position: relative; width: min(270px, 62%); transform: rotate(-4deg); transition: transform .5s ease; }
.hero-cover-img { position: relative; display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.hero-cover-page { position: absolute; inset: 2% -6% -2% 6%; background: #fff; opacity: .5; border-radius: 6px; transform: rotate(5deg); transition: transform .5s ease, opacity .5s ease; }
.hero-visual--revista:hover .hero-cover { transform: rotate(-2deg) scale(1.02); }
.hero-visual--revista:hover .hero-cover-page { transform: rotate(9deg) translateX(14px); opacity: .7; }
.hero-cover .hero-badge { top: -14px; right: -14px; }
.hero-slide--revista .hero-cover { opacity: 0; translate: 70px 0; }
.hero-slide--revista.activo .hero-cover { opacity: 1; translate: 0 0; transition: opacity .7s ease .25s, translate .9s cubic-bezier(.2,.8,.2,1) .25s, transform .5s ease; }

/* Fotos: máscara orgánica que cambia de forma / noticia con leve zoom */
.hero-photo { position: relative; width: 100%; max-width: 460px; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo--blob { aspect-ratio: 1 / 1; }
.hero-photo--blob img { border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; animation: heroShape 14s ease-in-out infinite alternate; }
@keyframes heroShape {
  0%   { border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; }
  100% { border-radius: 56% 44% 46% 54% / 46% 54% 46% 54%; }
}
.hero-photo--news { aspect-ratio: 16 / 10; }
.hero-photo--news img { border-radius: 24px; box-shadow: 0 24px 50px rgba(0,0,0,.28); transform: scale(1.12); }
.hero-slide.activo .hero-photo--news img { transform: none; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.hero-photo--news .hero-badge { top: 14px; left: 14px; right: auto; }

/* Podcast: disco que gira lento + ecualizador */
.hero-visual--podcast { flex-direction: column; gap: 22px; }
.hero-disc {
  width: min(300px, 64%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--s-tint);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.25);
  animation: heroSpin 40s linear infinite;
}
.hero-disc img { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroSpin { to { transform: rotate(360deg); } }
.hero-eq { display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.hero-eq span { width: 7px; height: 100%; border-radius: 4px; background: var(--s-cap-bg); transform-origin: bottom; animation: heroEq 1.1s ease-in-out infinite alternate; }
.hero-eq span:nth-child(1) { animation-delay: -.9s; }
.hero-eq span:nth-child(2) { animation-delay: -.2s; }
.hero-eq span:nth-child(3) { animation-delay: -.6s; }
.hero-eq span:nth-child(4) { animation-delay: -.1s; }
.hero-eq span:nth-child(5) { animation-delay: -.7s; }
.hero-eq span:nth-child(6) { animation-delay: -.3s; }
.hero-eq span:nth-child(7) { animation-delay: -.5s; }
@keyframes heroEq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }

/* Seminarios: tarjeta de video con play que pulsa */
.hero-video {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: var(--s-tint);
  display: grid;
  place-items: center;
  box-shadow: 0 24px 50px rgba(0,0,0,.2);
}
.hero-play {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--s-cap-bg);
  color: var(--s-cap-fg);
  display: grid;
  place-items: center;
}
.hero-play svg { margin-left: 4px; fill: currentColor; }
.hero-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--s-cap-bg); animation: heroPulse 2.4s ease-out infinite; }
@keyframes heroPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.hero-thumb { position: absolute; bottom: -22px; width: 38%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--s-tint); box-shadow: 0 10px 24px rgba(0,0,0,.18); opacity: 0; transform: translateY(20px); }
.hero-thumb--1 { left: 6%; }
.hero-thumb--2 { right: 6%; }
.hero-slide.activo .hero-thumb { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.hero-slide.activo .hero-thumb--1 { transition-delay: .7s; }
.hero-slide.activo .hero-thumb--2 { transition-delay: .85s; }

/* Podcast con episodio real: portada + titulo del ultimo episodio y 2 anteriores en filas */
.hero-pod { width: 100%; max-width: 470px; display: flex; flex-direction: column; gap: 16px; }
/* El play de Podcast reproduce en el sitio (boton), no solo abre Spotify (enlace) */
button.hero-pod-main { border: 0; background: none; font: inherit; text-align: left; cursor: pointer; padding: 0; width: 100%; }
.hero-pod-embed { width: 100%; max-width: 470px; border-radius: 12px; overflow: hidden; }
.hero-carousel a.hero-pod-main { display: flex; align-items: center; gap: 22px; color: var(--s-fg); text-decoration: none; }
.hero-pod-cover { position: relative; flex: none; width: 180px; }
.hero-pod-cover .hero-disc { display: grid; width: 100%; animation: none; }
.hero-pod-cover .hero-play { position: absolute; right: -8px; bottom: -8px; width: 58px; height: 58px; }
.hero-pod-cover .hero-play svg { margin-left: 3px; }
.hero-pod-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; text-align: left; }
.hero-pod-title { font-family: var(--font-title, 'Raleway', Arial, sans-serif); font-weight: 800; font-size: 20px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.hero-pod-info .hero-eq { height: 26px; }
.hero-pod-prev { display: flex; flex-direction: column; gap: 8px; }
.hero-carousel a.hero-pod-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--s-tint); color: var(--s-fg); text-decoration: none; font-size: 14px; opacity: 0; transform: translateY(16px); }
.hero-pod-rp { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--s-cap-bg); color: var(--s-cap-fg); display: grid; place-items: center; }
.hero-pod-rp svg { margin-left: 2px; fill: currentColor; }
.hero-pod-rt { flex: 1; min-width: 0; font-family: var(--font-title, 'Raleway', Arial, sans-serif); font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-pod-date { flex: none; font-size: 13px; opacity: .8; }
.hero-slide.activo a.hero-pod-row { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1), background-color .25s ease; }
.hero-slide.activo a.hero-pod-row:nth-child(1) { transition-delay: .7s, .7s, 0s; }
.hero-slide.activo a.hero-pod-row:nth-child(2) { transition-delay: .85s, .85s, 0s; }
.hero-carousel a.hero-pod-row:hover { background: var(--s-cap-bg); color: var(--s-cap-fg); }

/* Seminarios con portada real: ultimo video grande + 2 miniaturas */
.hero-visual--seminarios { flex-direction: column; gap: 14px; }
.hero-video--real { position: relative; display: block; width: 100%; max-width: 440px; overflow: hidden; background: #000; }
.hero-carousel a.hero-video--real { color: #fff; text-decoration: none; }
.hero-video--real > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.hero-slide.activo .hero-video--real > img { transform: none; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.hero-video-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,35,46,.9) 0%, rgba(18,35,46,.2) 55%, rgba(18,35,46,0) 100%); }
.hero-video--real .hero-play { position: absolute; left: 50%; top: 42%; translate: -50% -50%; }
.hero-video-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-video-tag { background: var(--s-cap-bg); color: var(--s-cap-fg); font-family: var(--font-title, 'Raleway', Arial, sans-serif); font-weight: 800; font-size: 12px; line-height: 1; padding: 6px 12px; border-radius: 999px; }
.hero-video-title { font-family: var(--font-title, 'Raleway', Arial, sans-serif); font-weight: 800; font-size: 16px; line-height: 1.25; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-align: left; }
.hero-minis { display: flex; gap: 14px; width: 100%; max-width: 440px; }
.hero-mini { position: relative; display: block; flex: 1; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 10px 24px rgba(0,0,0,.18); opacity: 0; transform: translateY(20px); }
.hero-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide.activo .hero-mini { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.hero-slide.activo .hero-mini:nth-child(1) { transition-delay: .7s; }
.hero-slide.activo .hero-mini:nth-child(2) { transition-delay: .85s; }

/* Grafica de respaldo (slides sin foto todavia) */
.hero-graphic {
  position: relative;
  width: min(340px, 80%);
  aspect-ratio: 1 / 1;
  background: var(--s-tint);
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  display: grid;
  place-items: center;
  animation: heroShape 14s ease-in-out infinite alternate;
}
.hero-graphic > svg { opacity: .9; }
.hero-graphic .hero-badge { top: 12%; right: -2%; }

/* ── Barra fija de areas + controles ── */
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px 0 20px; color: var(--s-fg); transition: color .5s ease; }
.hero-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-caps { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.hero-caps::-webkit-scrollbar { display: none; }
.hero-carousel .hero-cap {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-title, 'Raleway', Arial, sans-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  background: var(--s-tint);
  color: inherit;
  transition: background-color .3s ease, color .3s ease, transform .25s ease;
}
.hero-carousel .hero-cap:hover { transform: translateY(-2px); }
.hero-carousel .hero-cap.activo { background: var(--s-cap-bg); color: var(--s-cap-fg); }
.hero-cap-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: currentColor; }
.hero-cap.activo .hero-cap-progress { animation: heroProgress var(--hero-ms) linear forwards; }
@keyframes heroProgress { from { width: 0; } to { width: 100%; } }
.hero-carousel.is-paused .hero-cap-progress { animation-play-state: paused; }
.hero-carousel.is-stopped .hero-cap.activo .hero-cap-progress { animation: none; width: 0; }

.hero-ctrls { display: flex; gap: 8px; flex: none; }
.hero-carousel .hero-ctrl {
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--s-tint);
  color: inherit;
  transition: background-color .25s ease, transform .25s ease;
}
.hero-carousel .hero-ctrl:hover { transform: translateY(-2px); }
.hero-toggle .ic-pause { display: inline-flex; }
.hero-toggle .ic-play { display: none; }
.hero-toggle[aria-pressed="true"] .ic-pause { display: none; }
.hero-toggle[aria-pressed="true"] .ic-play { display: inline-flex; }

/* Sin foco visible en la pantalla: se pausan las animaciones infinitas */
.hero-carousel.is-offscreen *, .hero-carousel.is-offscreen *::before, .hero-carousel.is-offscreen *::after { animation-play-state: paused !important; }

/* ── Tablet / móvil ── */
@media (max-width: 900px) {
  .hero-slide { min-height: 0; padding: 40px 0 132px; align-items: flex-start; }
  .hero-wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 0; order: 2; }
  .hero-carousel .hero-text { font-size: 17px; }
  .hero-photo, .hero-video { max-width: 320px; }
  .hero-cover { width: min(170px, 46%); }
  .hero-disc { width: 150px; }
  .hero-graphic { width: 170px; }
  .hero-graphic > svg { width: 60px; height: 60px; }
  .hero-eq { height: 28px; }
  .hero-thumb, .hero-minis, .hero-pod-prev { display: none; }
  .hero-pod { max-width: 340px; }
  .hero-pod-cover { width: 120px; }
  .hero-pod-cover .hero-play { width: 46px; height: 46px; right: -6px; bottom: -6px; }
  .hero-pod-title { font-size: 16px; -webkit-line-clamp: 3; }
  .hero-video-title { font-size: 15px; }
  .hero-blob--1 { width: 240px; height: 240px; }
  .hero-blob--3 { width: 300px; height: 300px; }
}
@media (max-width: 600px) {
  .hero-carousel .hero-h { font-size: 28px; -webkit-line-clamp: 5; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-carousel a.hero-btn { width: 100%; }
  .hero-ctrls .hero-prev, .hero-ctrls .hero-next { display: none; }
  .hero-bar { padding: 12px 0 16px; }
}

/* ── Accesibilidad: movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel *, .hero-carousel *::before, .hero-carousel *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hw > span { transform: none !important; }
  .hero-chip, .hero-text, .hero-actions, .hero-logo, .hero-badge, .hero-thumb { opacity: 1 !important; transform: none !important; }
  .hero-slide--revista .hero-cover { opacity: 1 !important; translate: 0 0 !important; }
  .hero-visual { opacity: 1 !important; }
  .hero-photo--news img, .hero-video--real > img { transform: none !important; }
  .hero-mini, .hero-carousel a.hero-pod-row { opacity: 1 !important; transform: none !important; }
  .hero-blob, .hero-visual { translate: none !important; }
}

/* ── Feedback sep. 2026: alto de los banners (R6), slide de Podcast (R7) y Noticias (R3) ──
   Para volver atras basta con quitar este bloque. */

/* Podcast: el reproductor es un <button> desde que el play reproduce en la pagina, pero el
   diseno lado a lado solo estaba definido para el enlace <a>. Sin esto la portada se estiraba
   a todo el ancho (470 x 470) y la slide media 718 px, estirando todo el carrusel. */
.hero-carousel button.hero-pod-main { display: flex; align-items: center; gap: 22px; color: var(--s-fg); }

/* R7: slide de Podcast mas simple. Sin los 2 episodios anteriores, y portada cuadrada
   con esquinas redondeadas (el circulo cortaba el logo y el texto de la portada). */
.hero-visual--podcast .hero-pod-prev { display: none; }
.hero-pod-cover .hero-disc { border-radius: 18px; overflow: hidden; }

/* R3: en los banners de Noticias, titulo y bajada en maximo 3 lineas. */
.hero-slide--noticias .hero-h,
.hero-slide--noticias .hero-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* R6: menos aire y una misma altura minima para todos los banners en escritorio.
   (La barra inferior ocupa ~80 px, por eso el relleno de abajo es mayor.) */
@media (min-width: 901px) {
  .hero-slide { min-height: 560px; padding: 40px 0 100px; }
}

/* ── Banner de una sola slide, sin barra inferior (Quiénes somos, feedback sep. 2026) ──
   Sin la barra de botones sobra el relleno inferior extra; se mantiene la misma altura
   minima que los demas banners para que todos se vean parejos. */
.hero-carousel--unico .hero-slide { padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 900px) {
  .hero-carousel--unico .hero-slide { padding-bottom: 48px; }
}

/* ── Banner sin botones de seccion (Recursos, feedback sep. 2026) ──
   Los botones Seminarios / Podcast / Material repetian las pestanas de justo abajo.
   Se ocultan (el JS los sigue usando para sincronizar); quedan las flechas y la pausa. */
.hero-carousel--sin-caps .hero-caps { display: none; }
.hero-carousel--sin-caps .hero-bar-inner { justify-content: flex-end; }

/* ── N4 y N5 (feedback oct. 2026): titulos completos y banner de Noticias ──
   N4: el titulo ya no se corta con "…": si es largo, hero-carousel.js achica la letra hasta que
   quepa en 3 lineas (4 en telefono), con un minimo legible; si aun asi no cabe, se muestra completo.
   N5: en Noticias, titulo con letra base mas chica y bajada corta terminada en "Ver más". */
.hero-carousel .hero-slide .hero-h { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hero-carousel .hero-slide--noticias .hero-h { font-size: clamp(28px, 3vw, 42px); }
.hero-carousel .hero-slide--noticias .hero-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hero-vermas { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hero-vermas:hover { color: inherit; opacity: .8; }

/* ── N6 (feedback oct. 2026): movimiento en los banners de una sola slide ──
   Quienes somos y /revista/ no usan el carrusel, asi que su slide ya viene activa y la entrada
   (que funciona con transiciones al cambiar de slide) nunca se veia. Aqui la misma entrada, con los
   mismos tiempos y curvas, pero como animacion al cargar. El movimiento con el mouse lo agrega
   hero-carousel.js. Solo afecta a banners sin id="hero-carousel". */
@keyframes heroEntraPalabra { from { transform: translateY(110%); } to { transform: none; } }
@keyframes heroEntraSube    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroEntraTexto   { from { opacity: 0; transform: translateY(14px); } to { opacity: .94; transform: none; } }
@keyframes heroEntraAparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroEntraInsignia { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.hero-carousel:not([id]) .hero-slide.activo .hw > span { animation: heroEntraPalabra .75s cubic-bezier(.2,.8,.2,1) calc(.3s + var(--i, 0) * .06s) both; }
.hero-carousel:not([id]) .hero-slide.activo .hero-chip    { animation: heroEntraSube .5s ease .05s both; }
.hero-carousel:not([id]) .hero-slide.activo .hero-text    { animation: heroEntraTexto .6s ease .6s both; }
.hero-carousel:not([id]) .hero-slide.activo .hero-actions { animation: heroEntraSube .6s ease .75s both; }
.hero-carousel:not([id]) .hero-slide.activo .hero-visual  { animation: heroEntraAparece .7s ease .2s both; }
.hero-carousel:not([id]) .hero-slide.activo .hero-badge   { animation: heroEntraInsignia .6s cubic-bezier(.34,1.56,.64,1) .9s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel:not([id]) .hero-slide.activo .hw > span,
  .hero-carousel:not([id]) .hero-slide.activo .hero-chip,
  .hero-carousel:not([id]) .hero-slide.activo .hero-text,
  .hero-carousel:not([id]) .hero-slide.activo .hero-actions,
  .hero-carousel:not([id]) .hero-slide.activo .hero-visual,
  .hero-carousel:not([id]) .hero-slide.activo .hero-badge { animation: none !important; }
}

/* ── N8 (feedback oct. 2026): fotos del equipo en el banner de Quienes somos ── */
.qs-mosaico { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; width: min(100%, 470px); aspect-ratio: 470 / 400; }
.qs-mosaico-foto { position: relative; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.qs-mosaico-foto--1 { grid-row: 1 / span 2; }
.qs-mosaico-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: opacity .6s ease; }
.qs-mosaico-foto img.qs-cambiando { opacity: 0; }
@media (max-width: 900px) { .qs-mosaico { width: min(100%, 380px); } }

/* ── Quienes somos: una foto horizontal que va cambiando (mismo estilo que el banner de Noticias) ── */
.qs-foto { position: relative; width: min(100%, 500px); aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.12); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.qs-foto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.qs-foto-img.activa { opacity: 1; }
.qs-foto-etq {
  position: absolute; top: 16px; left: 16px; z-index: 2; background: #12232E; color: #fff;
  font-family: var(--font-title, inherit); font-weight: 800; font-size: 14px; line-height: 1; padding: 9px 16px; border-radius: 999px;
  transition: opacity .4s ease;
}
.qs-foto-etq.cambiando { opacity: 0; }
@media (max-width: 900px) { .qs-foto { width: min(100%, 420px); } }
