/* ================================================================
   TALLER VIDEO — Estilos específicos para sección taller con video
   Video oscurecido de fondo para la sección "En el taller"
   ================================================================ */

/* --- Sección taller base --- */
.section-taller {
  position: relative;
  background: linear-gradient(180deg,
    var(--ink-1) 0%,
    var(--panel-1) 50%,
    var(--ink-0) 100%
  );
  overflow: hidden;
  min-height: 120vh;
}

/* --- Video de fondo --- */
.taller-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.7;
  z-index: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: tallerVideoFadeIn 1.5s ease-out forwards;
}

@keyframes tallerVideoFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

/* --- Overlay principal para oscurecer --- */
.taller-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Efecto spotlight desde arriba */
    radial-gradient(
      ellipse 120% 80% at 50% 0%,
      rgba(0, 0, 0, 0.05) 0%,
      transparent 60%
    ),
    /* Gradiente principal de oscurecimiento */
    linear-gradient(
      180deg,
      rgba(13, 13, 13, 0.15) 0%,      /* Superior más claro */
      rgba(13, 13, 13, 0.35) 50%,     /* Centro moderado */
      rgba(13, 13, 13, 0.6) 100%      /* Inferior más oscuro */
    ),
    /* Gradiente lateral sutil */
    linear-gradient(
      90deg,
      rgba(13, 13, 13, 0.08) 0%,
      transparent 30%,
      transparent 70%,
      rgba(13, 13, 13, 0.05) 100%
    );
  pointer-events: none;
}

/* --- Vignette para profundidad --- */
.taller-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Vignette radial */
    radial-gradient(
      ellipse at 50% 40%,
      transparent 0%,
      rgba(0, 0, 0, 0.05) 30%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    /* Grano/ruido sutil */
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.01) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 0, 0, 0.01) 3px
    );
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* --- Contenedor de contenido --- */
.section-taller .wrap {
  position: relative;
  z-index: 10;
}

/* --- Section head con fondo oscuro --- */
.section-taller .section-head {
  position: relative;
  z-index: 10;
  padding: var(--sp-lg) 0;
}

.section-taller .section-head p,
.section-taller .section-head h2 {
  color: var(--text-hi);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-taller .section-head .section-sub {
  color: var(--text-md);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.section-taller .section-head .eyebrow {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}

/* --- Video gauge row (grid de videos) --- */
.video-gauge-row {
  position: relative;
  z-index: 10;
}

.video-gauge {
  position: relative;
  z-index: 10;
}

/* --- Quitar figcaption (ya no existe, pero precaución) --- */
.video-gauge figcaption {
  display: none;
}

/* --- Animaciones de entrada para elementos --- */
.section-taller [data-reveal] {
  animation: revealFromBottom 0.8s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes revealFromBottom {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive: Tablet --- */
@media (max-width: 960px) {
  .section-taller {
    min-height: 100vh;
  }

  .taller-video {
    opacity: 0.35;
  }

  .taller-overlay {
    background:
      radial-gradient(
        ellipse 120% 80% at 50% 0%,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 60%
      ),
      linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.35) 0%,
        rgba(13, 13, 13, 0.65) 100%
      );
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 640px) {
  .section-taller {
    min-height: 80vh;
    padding-top: var(--sp-lg);
  }

  .taller-video {
    opacity: 0.3;
  }

  .taller-overlay {
    background:
      radial-gradient(
        ellipse 120% 80% at 50% 0%,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 60%
      ),
      linear-gradient(
        180deg,
        rgba(13, 13, 13, 0.45) 0%,
        rgba(13, 13, 13, 0.75) 100%
      );
  }

  .section-taller .section-head {
    padding: var(--sp-md) 0;
  }

  .section-taller .section-head h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

/* --- Prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .taller-video {
    animation: none !important;
    opacity: 0.4 !important;
  }

  .section-taller [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
