/* ===== hero.css — Hero carrusel (home) ===== */

.hero {
  position: relative;
  overflow: hidden;
  /* padding-top mayor: el navbar overlay (fixed) va por encima del hero */
  padding: 116px 0 64px;
  /* imagen de fondo + capa oscura azul/negro encima */
  background:
    linear-gradient(135deg, rgba(5, 12, 22, .82), rgba(8, 28, 48, .8)),
    url('../img/banner-quienesomos.png') center / cover no-repeat;
}

/* ══════════════════════════════════
   FONDO ANIMADO — Aurora
══════════════════════════════════ */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---- Aurora (glows que flotan) ---- */
.hero-bg-aurora {
  position: absolute;
  inset: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blob-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: 6%;
  background: rgba(34,113,178,.35);
  animation: auroraA 16s ease-in-out infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: 34%;
  background: rgba(1,138,56,.25);
  animation: auroraB 20s ease-in-out infinite;
}

.blob-3 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: 8%;
  background: rgba(45,160,220,.30);
  animation: auroraC 13s ease-in-out infinite;
}

@keyframes auroraA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, 40px) scale(1.25); }
}

@keyframes auroraB {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50%      { transform: translate(-60px, -30px) scale(.85); }
}

@keyframes auroraC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, 50px) scale(1.2); }
}

/* ══════════════════════════════════
   SLIDER
══════════════════════════════════ */
.hero-slider {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, visibility .7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  height: 100%;
  padding: 32px var(--padding-x) 48px;
}

/* Columna de contenido: todo anclado arriba, botones justo debajo del texto */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-content .hero-actions {
  margin-top: 4px;
}

/* Columna derecha: card principal + mini card apiladas, alineadas arriba */
.hero-cards {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ══════════════════════════════════
   CONTENIDO
══════════════════════════════════ */
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5fb0e8;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-line-gradient-wrap {
  display: inline;
}

.hero-line-gradient {
  display: inline;
  color: #2c8fd6;
  opacity: 1 !important;
}

.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-meta-name { color: #fff; font-weight: 500; }
.hero-meta-sep { color: rgba(255,255,255,.3); }

.hero-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}

.hero-btn span {
  display: inline-block;
  transition: transform .2s ease;
}

.hero-btn:hover span {
  transform: translateX(3px);
}

.hero-btn-primary {
  background: #018a38;
  color: #fff;
}

.hero-btn-primary:hover {
  background: #016b2c;
  transform: translateY(-2px);
}

.hero-btn-outline {
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
}

.hero-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

/* ══════════════════════════════════
   CARD DE STAT
══════════════════════════════════ */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(34,113,178,.4);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(6px);
}

.hero-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}

.hero-card-num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-card-unit {
  color: var(--green);
}

.hero-card-sub {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  margin-bottom: 22px;
}

.hero-card-bar {
  height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.hero-card-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(to right, #2271b2, #018a38);
}

/* Ícono grande dentro de la card principal (slide reconocimiento) */
.hero-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 14px;
}

/* Título tipo premio (texto en vez de número) */
.hero-card-award {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

/* ---- Mini card secundaria ---- */
.hero-card-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(34,113,178,.3);
  border-radius: 14px;
  padding: 16px 19px;
}

.hero-card-mini-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34,113,178,.15);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5fb0e8;
  font-size: 20px;
}

.hero-card-mini-title {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 2px;
}

.hero-card-mini-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}

/* Logo dentro de la card principal (slide alianza Genesys) — reemplaza al
   hero-card-num cuando la card muestra un logo en vez de un stat numérico */
.hero-card-logo {
  display: block;
  max-width: 140px;
  height: auto;
  margin-bottom: 18px;
}

/* Link pequeño secundario dentro de la mini card (ej. "Ver entrevista →") */
.hero-card-mini-link {
  display: inline-block;
  margin-top: 8px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.hero-card-mini-link:hover {
  color: #2bb673;
}

/* ══════════════════════════════════
   ENTRADA POR SLIDE (CSS, sin GSAP)
══════════════════════════════════ */
.hero-slide .hero-eyebrow,
.hero-slide .hero-h1,
.hero-slide .hero-meta,
.hero-slide .hero-body,
.hero-slide .hero-actions,
.hero-slide .hero-card,
.hero-slide .hero-card-mini {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.hero-slide.is-active .hero-eyebrow   { opacity: 1; transform: none; transition-delay: .12s; }
.hero-slide.is-active .hero-h1        { opacity: 1; transform: none; transition-delay: .22s; }
.hero-slide.is-active .hero-meta      { opacity: 1; transform: none; transition-delay: .30s; }
.hero-slide.is-active .hero-body      { opacity: 1; transform: none; transition-delay: .36s; }
.hero-slide.is-active .hero-actions   { opacity: 1; transform: none; transition-delay: .46s; }
.hero-slide.is-active .hero-card      { opacity: 1; transform: none; transition-delay: .30s; }
.hero-slide.is-active .hero-card-mini { opacity: 1; transform: none; transition-delay: .42s; }

/* ══════════════════════════════════
   DOTS
══════════════════════════════════ */
.hero-dots {
  position: absolute;
  right: var(--padding-x);
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 100px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}

.hero-dot:hover {
  background: rgba(255,255,255,.55);
}

.hero-dot.is-active {
  width: 32px;
  background: var(--blue);
}

/* ══════════════════════════════════
   CREDENCIALES — versión clara sobre el azul
   (mayor especificidad que credentials.css)
══════════════════════════════════ */
.hero .credentials {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.hero .cred-stat {
  border-right-color: rgba(255,255,255,.14);
}

.hero .cred-num {
  color: #fff;
}

.hero .cred-label {
  color: rgba(255,255,255,.6);
}

.hero .cred-icon {
  color: rgba(255,255,255,.85);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    padding: 92px 0 56px;
  }
  .hero-slider {
    min-height: 820px;
  }
  .hero-slide-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: start;
    padding: 24px var(--padding-x) 84px;
  }
  /* En mobile los botones siguen al texto (no se anclan abajo) */
  .hero-content .hero-actions {
    margin-top: 0;
    padding-top: 4px;
  }
  .hero-card {
    order: 2;
    padding: 24px;
  }
  .hero-card-num {
    font-size: 44px;
  }
  .hero-body {
    max-width: none;
  }
  .hero-dots {
    bottom: 34px;
  }
}

@media (max-width: 600px) {
  .hero-slider {
    min-height: 940px;
  }
}
