/* ================================
   Sección de video (base)
   ================================ */
.video-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  z-index: 3;
}

.video-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-text);
  min-height: 700px;
  height: 70vh;
  position: relative; /* para apilar overlay encima */
}

@media (max-width: 900px) {
  .video-item {
    min-height: fit-content;
    padding: 20px 0;
    height: 50vh;
  }
}

.video-background {
  width: 100%;
  height: 100%;
  position: absolute; /* ← CAMBIO (antes: relative) */
  inset: 0;
  z-index: 1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute; /* ← CAMBIO (antes: static) */
  inset: 0;
}

/* ================================
   Overlay fijo + tipografía fluida
   ================================ */

/* Scrim fijo y constante */
.video-item::after {
  --overlay-alpha: 0.6;
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-alpha));
  z-index: 2; /* ← CAMBIO (antes: 4, ahora debajo del overlay) */
  pointer-events: none;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Overlay siempre visible y centrado */
.video-overlay {
  position: relative; /* ← CAMBIO (antes: absolute) */
  inset: auto;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  place-items: center;
  pointer-events: none; /* no bloquea el video */
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

.video-overlay__inner {
  z-index: 4; /* ← CAMBIO (antes: 6, coherente con z-index nuevos) */
  position: relative;
  font-family: var(--font-title);
  --measure: clamp(36ch, 62vw, 58ch);
  min-width: 850px;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  pointer-events: auto; /* permite clics en el botón */
}

@media (max-width: 900px) {
  .video-overlay__inner {
    min-width: auto;
    padding: 0 20px;
  }
}

/* Tipografía fluida (sin efectos ni transformaciones) */
.video-title {
  margin: 0 0 clamp(10px, 1.4vw, 16px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-size: clamp(26px, 6vw, 56px);
}

.video-subtitle {
  display: flex;
  position: relative;
  line-height: 1.6;
  font-size: var(--font-size-paragraph);
  margin-bottom: 1rem;
  max-width: 1024px;
  width: 80%;
}

@media (max-width: 425px) {
  .video-subtitle {
    width: 100%;
  }
}

/* Botón CTA completamente estático */
.video-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: clamp(10px, 1.6vw, 16px) clamp(16px, 2.4vw, 28px);
  background: var(--color-text-green);
  color: var(--color-bg);
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(13px, 2vw, 18px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  width: fit-content;
  transition: all 0.3s ease;
}

.video-cta:hover {
  background-color: var(--color-active);
}

.video-cta svg {
  fill: var(--color-bg);
  height: clamp(16px, 2vw, 22px);
  width: auto;
  transition: transform 0.3s ease; /* suaviza el movimiento */
}

/* efecto hover */
.video-cta:hover svg {
  transform: translateX(6px); /* mueve 6px a la derecha */
}
