/*
 * ===================================================================
 * ESTILOS PARA VÍDEO FIJO CON OVERLAY (VERSIÓN FINAL Y ORDENADA)
 * ===================================================================
 */

/* --- 1. EL CONTENEDOR PRINCIPAL DEL PÁRRAFO --- */
/* Lo convertimos en una capa fija que ocupa toda la pantalla. */
.paragraph--full-width-video {
  /* ¡ESTA ES LA REGLA CLAVE QUE FALTABA O ERA INCORRECTA! */
  /* Lo fija a la ventana y lo convierte en el "ancla" para sus hijos. */
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1; /* Lo ponemos en una capa base, por detrás del contenido principal. */
  background-color: #000; /* Fondo por si el vídeo tarda en cargar */
  margin-top: -189px;
}

/* --- 2. EL ELEMENTO DE VÍDEO --- */
/* Lo estiramos para que cubra todo el contenedor. */
.paragraph--full-width-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2; /* Por encima del fondo negro del padre. */
}

/* --- 3. LA CAPA DE TEXTO Y BOTÓN --- */
/* Se posiciona absolutamente para cubrir todo el contenedor y se centra el contenido. */
.video-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  z-index: 3; /* Por encima del vídeo. */
  box-sizing: border-box;
}

/* Estilos para el texto y el botón del overlay */
.overlay-title {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  color: #fff;
}

.overlay-text {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.overlay-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #cc202c; /* Tu color corporativo */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.overlay-button:hover {
  transform: scale(1.05);
}

/* --- 4. EL BOTÓN DE PLAY/PAUSA --- */
/* Se posiciona en la esquina, por encima de todo lo demás. */
.video-control-button {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 4; /* Por encima de la capa de texto. */
  /* Apariencia */
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.video-control-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ... (Aquí van el resto de tus estilos para los iconos .play-icon y .pause-icon que ya estaban bien) ... */
.video-control-button .play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
  margin: 0 auto;
  margin-left: 18px;
}

.video-control-button .pause-icon {
  width: 14px;
  height: 16px;
  margin: 0 auto;
}
.video-control-button .pause-icon::before,
.video-control-button .pause-icon::after {
  content: '';
  position: absolute;
  top: 15px;
  width: 4px;
  height: 16px;
  background-color: #ffffff;
}
.video-control-button .pause-icon::before { left: 16px; }
.video-control-button .pause-icon::after { right: 16px; }

.video-control-button .play-icon,
.video-control-button.is-playing .pause-icon {
  display: block;
}

.video-control-button .pause-icon,
.video-control-button.is-playing .play-icon {
  display: none;
}
