/**
 * @file
 * Hero YouTube slider – full-viewport background video.
 */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 400px;
  overflow: hidden;
  background: #000;
}

/* ── Slider & slides ────────────────────────────────────── */
.hero .slider {
  position: absolute;
  inset: 0;
}

.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  /* Thumbnail de YouTube como placeholder mientras carga el iframe */
  background-size: cover;
  background-position: center;
}

.hero .slide.visible {
  opacity: 1;
}

.hero .slide iframe {
  position: absolute;
  /* Oversize para ocultar las barras negras de YouTube */
  top: 50%;
  left: 50%;
  width: 177.78vh;   /* 16/9 * 100vh */
  min-width: 100%;
  height: 56.25vw;   /* 9/16 * 100vw */
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* ── Overlay ────────────────────────────────────────────── */
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  pointer-events: none;
}

/* ── Text content ───────────────────────────────────────── */
.hero .content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: #fff;
  z-index: 1;
}

.hero .content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0 0 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.hero .content p {
  font-size: clamp(1rem, 2vw, 1.35rem);
  max-width: 680px;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  line-height: 1.6;
}
