/* =========================================================
   HERO / STELLA TV
   Sección principal con texto + carrusel 3D premium
========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  overflow: hidden;
}

/* =========================================================
   FONDO DEL HERO
========================================================= */

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(circle at 25% 35%, rgba(255, 59, 141, 0.24), transparent 34%),
    radial-gradient(circle at 75% 45%, rgba(255, 138, 0, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(7, 7, 11, 0.2), rgba(7, 7, 11, 0.95));
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg::before {
  width: 620px;
  height: 620px;
  right: -180px;
  top: 120px;
  background: radial-gradient(circle, rgba(255, 59, 141, 0.12), transparent 65%);
  filter: blur(8px);
  animation: heroGlow 8s ease-in-out infinite;
}

.hero-bg::after {
  width: 380px;
  height: 380px;
  left: -120px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.1), transparent 65%);
  filter: blur(10px);
  animation: heroGlow 10s ease-in-out infinite reverse;
}

/* =========================================================
   GRID GENERAL
========================================================= */

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

/* =========================================================
   CONTENIDO IZQUIERDO
========================================================= */

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  margin: 18px 0;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0;
}

/* =========================================================
   ESTADÍSTICAS
========================================================= */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats div {
  min-width: 130px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   CARRUSEL 3D DEL HERO
========================================================= */

.hero-card {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.hero-carousel {
  --rotateX: 0deg;
  --rotateY: 0deg;

  position: relative;
  width: min(100%, 560px);
  height: 560px;
  transform-style: preserve-3d;
  transform:
    perspective(1600px)
    rotateX(var(--rotateX))
    rotateY(var(--rotateY));
  transition: transform 0.25s ease;
}

.hero-carousel-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.75;
  filter: blur(52px);
  background:
    radial-gradient(circle, rgba(255, 59, 141, 0.38), transparent 62%),
    radial-gradient(circle at 70% 30%, rgba(255, 138, 0, 0.26), transparent 58%);
  animation: heroCarouselGlow 5.5s ease-in-out infinite;
}

.hero-carousel-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* =========================================================
   SLIDE / CARD
========================================================= */

.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(410px, 82vw);
  min-height: 500px;
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(255, 59, 141, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 34px 95px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 59, 141, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 60px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease,
    filter 0.75s ease,
    box-shadow 0.75s ease;
}

/* Brillo elegante sobre el card */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 38%);
}

/* Oscurece la imagen para que el texto se vea encima */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(5, 4, 10, 0.08) 0%,
      rgba(5, 4, 10, 0.24) 42%,
      rgba(5, 4, 10, 0.76) 100%
    ),
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.34) 100%
    );
}

/* =========================================================
   IMAGEN FULL CARD
========================================================= */

.hero-slide-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.hero-slide-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter:
    brightness(0.48)
    saturate(1.08)
    contrast(1.08);
  transition:
    transform 0.8s ease,
    filter 0.8s ease;
}

.hero-slide:hover .hero-slide-image img {
  transform: scale(1.08);
  filter:
    brightness(0.56)
    saturate(1.12)
    contrast(1.1);
}

/* =========================================================
   CONTENIDO DEL SLIDE
========================================================= */

.hero-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 28px 34px 40px;
  text-align: center;
}

.hero-slide-content h3 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: transparent;
  background: linear-gradient(135deg, #ffffff, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-slide-content p {
  max-width: 380px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================================================
   ESTADOS DEL CARRUSEL
========================================================= */

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform:
    translate(-50%, -50%)
    rotateY(0deg)
    rotateX(0deg)
    translateZ(90px)
    scale(1);
  animation: heroSlideFloat 5.5s ease-in-out infinite;
}

.hero-slide.is-left {
  opacity: 0.44;
  filter: blur(1.5px) saturate(0.85);
  transform:
    translate(calc(-50% - 230px), -50%)
    rotateY(34deg)
    rotateZ(-4deg)
    translateZ(-90px)
    scale(0.74);
}

.hero-slide.is-right {
  opacity: 0.44;
  filter: blur(1.5px) saturate(0.85);
  transform:
    translate(calc(-50% + 230px), -50%)
    rotateY(-34deg)
    rotateZ(4deg)
    translateZ(-90px)
    scale(0.74);
}

.hero-slide.is-hidden {
  opacity: 0;
  filter: blur(8px);
  transform:
    translate(-50%, -50%)
    translateZ(-240px)
    scale(0.45);
}

/* =========================================================
   BOTÓN PLAY
========================================================= */

.play-circle {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow:
    0 20px 50px rgba(255, 59, 141, 0.45),
    0 0 36px rgba(255, 138, 0, 0.38);
}

/* =========================================================
   FLECHAS
========================================================= */

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  color: #ffffff;
  font-size: 2.6rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-left {
  left: 0;
}

.hero-arrow-right {
  right: 0;
}

/* =========================================================
   DOTS
========================================================= */

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
  transition:
    width 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 0 22px rgba(255, 59, 141, 0.5);
}

/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes heroSlideFloat {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -16px;
  }
}

@keyframes heroCarouselGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes heroGlow {
  50% {
    transform: scale(1.12) translateY(-20px);
    opacity: 0.55;
  }
}