/* hero/base/01 */
.hero-section {
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}

/* === Carrusel === */
/* hero/carrusel/01 */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
}
/* hero/carrusel/02 */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
/* hero/carrusel/03 */
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* hero/carrusel/04 */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden; /* recorta el zoom de la imagen sin agrandar la sección */
}
/* La imagen real: esto es lo único que crece (Ken Burns). El overlay queda fijo. */
/* hero/carrusel/05 */
.hero-slide-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}
/* Velo oscuro del lado del texto, para que el blanco se lea sobre cualquier imagen */
/* hero/carrusel/06 */
.hero-slide-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.1) 65%,
    transparent 100%
  );
}
/* Fade a negro abajo, para integrar con la sección siguiente */
/* hero/carrusel/07 */
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    var(--bg-void) 100%
  );
}
/* hero/carrusel/08 */
.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
/* hero/carrusel/09 */
.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
/* hero/carrusel/10 */
.hero-title-image {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: clamp(60px, 10vw, 120px);
}
/* hero/carrusel/11 */
.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 46ch;
}
/* hero/carrusel/12 */
.hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
/* hero/carrusel/13 */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 32px;
  padding: 14px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  background: rgba(10, 13, 11, 0.82);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  transition: border-color 0.25s ease, background 0.25s ease;
}
/* hero/carrusel/14 */
.hero-cta:hover {
  border-color: var(--emerald);
  background: rgba(27, 97, 21, 0.55);
}

/* === Controles: flechas + dots agrupados abajo a la derecha ===== */
/* hero/controles/01 */
.hero-controls {
  position: absolute;
  bottom: 28px;
  right: 8vw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}
/* hero/controles/02 */
.hero-arrow {
  position: static;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-primary);
  background: rgba(11, 15, 13, 0.4);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
/* hero/controles/03 */
.hero-arrow:hover {
  border-color: var(--emerald);
  background: rgba(27, 97, 21, 0.15);
}

/* === Dots === */
/* hero/dots/01 */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* hero/dots/02 */
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
/* hero/dots/03 */
.hero-dot.is-active {
  width: 24px;
  background: var(--emerald);
}

/* === Card lateral (noticia/novedad), opcional por slide === */
/* hero/card-lateral/01 */
.hero-card-group {
  position: absolute;
  top: 50%;
  right: 8vw;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: stretch;
  gap: 12px;
}


/* hero/card-lateral/02 */
.hero-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* hero/card-lateral/03 */
.hero-card-btn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 34px 18px 18px;
  border: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    transparent 100%
  );
  color: var(--text-primary);
  overflow: hidden;
}
/* hero/card-lateral/04 */
.hero-card-btn-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, var(--emerald) 0%, rgba(27, 97, 21, 0) 75%);
  opacity: 0;
}
/* hero/card-lateral/05 */
.hero-card-btn-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
/* hero/card-lateral/06 */
.hero-card-btn-underline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  height: 2px;
  z-index: 1;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
}
/* hero/card-lateral/07 */
.hero-card-btn-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
}

/* === Esquina despegada (alternativa al botón ancho), opcional por card === */
/* hero/card-esquina/01 */
.hero-card-esquina {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(140px, 15vw, 190px);
  aspect-ratio: 1;
  display: block;
}
/* hero/card-esquina/02 */
.hero-card-esquina-fondo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 20px 20px 0;
  background: var(--emerald);
  color: var(--text-primary);
  font-weight: 800;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* hero/card-esquina/03 */
.hero-card-esquina-solapa {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-surface);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  box-shadow: -8px -8px 18px rgba(0, 0, 0, 0.4);
  transform-origin: 100% 100%;
  transform: scale(0.92);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
/* hero/card-esquina/04 */
.hero-card-esquina:hover .hero-card-esquina-solapa {
  transform: scale(0.55) rotate(-8deg);
  box-shadow: -14px -14px 26px rgba(0, 0, 0, 0.55);
}


/* hero/card-lateral/08 */
.hero-card-horizontal {
  width: clamp(320px, 30vw, 560px);
  aspect-ratio: 7 / 4;
}
/* hero/card-lateral/09 */
.hero-card-vertical {
  width: clamp(260px, 26vw, 360px);
  aspect-ratio: 9 / 13;
}
/* hero/card-lateral/10 */
.hero-card-image-wrap {
  display: block;
  width: 100%;
  height: 100%;
}
/* hero/card-lateral/11 */
.hero-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* hero/card-lateral-mobile/01 */
@media (max-width: 1200px) {
  .hero-card-group {
    right: 5vw;
  }
}

/* hero/controles-mobile/01, hero/carrusel-mobile/01, hero/card-lateral-mobile/02 */
@media (max-width: 640px) {
  .hero-arrow {
    display: none;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-card-group {
    display: none; /* Hero ya está oculto en mobile, por las dudas */
  }
}

/* hero/carrusel-reduced-motion/01 */
@media (prefers-reduced-motion: reduce) {
  .hero-slide-image {
    transform: none !important;
    transition: none !important;
  }
}
