/* ==========================================================================
   Componente: Hero (.hero)
   Video de fondo a pantalla completa con overlay y contenido superpuesto
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

/* Fondo: gradiente de respaldo mientras carga o si el video no está disponible */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Degradado oscuro sobre el video: concentrado detrás del texto (centro)
   y transparente hacia los bordes, en vez de una caja sólida */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 65% 75% at 50% 50%,
    rgba(0, 0, 0, .8) 0%,
    rgba(0, 0, 0, .6) 40%,
    rgba(0, 0, 0, .25) 70%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-32);
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  animation: fade-up .8s ease both;
}

.hero__motif-icon {
  position: absolute;
  top: var(--space-16);
  right: var(--space-24);
  z-index: -1;
  color: var(--primary);
  opacity: .1;
  font-size: clamp(3rem, 8vw, 5rem);
  transform: rotate(20deg);
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--space-24);
}

.hero__title-accent {
  color: var(--primary-light);
}

.hero__subtitle {
  max-width: 520px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-32);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-16);
}

.hero__actions .btn {
  min-width: 210px;
}

/* Respeta la preferencia por reducir movimiento: se conserva el gradiente/poster */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

@media (min-width: 992px) {
  .hero__content {
    padding: var(--space-64);
  }
}
