/* ========================================
   ESTILOS PARA PÁGINA DE VIDEOS
   ======================================== */

/* Contenedor principal de videos */
.video-conteiner {
  padding: 1rem 0;
  min-height: 100vh;
}

/* Contenedor de videos */
.video-content {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  grid-template-columns: 1fr;
}

/* Tarjeta de video individual */
.item-video {
  background-color: var(--color-blanco);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(54, 162, 135, 0.1);
}



/* Video iframe */
.video {
  width: 100%;
  height: 25rem;
  border: none;
  display: block;
}

/* Contenido de texto del video */
.video-texto {
  padding: 2rem;
}

.video-texto h3 {
  font-size: 1.8rem;
  margin: 0 0 0.8rem 0;
  font-weight: 700;
  color: var(--color-gris-famatex);
  line-height: 1.3;
}

.video-texto p {
  margin: 0;
  font-size: 1.4rem;
  color: #666;
  font-weight: 500;
}

/* Animación de entrada */
.item-video {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.item-video:nth-child(1) { animation-delay: 0.1s; }
.item-video:nth-child(2) { animation-delay: 0.2s; }
.item-video:nth-child(3) { animation-delay: 0.3s; }
.item-video:nth-child(4) { animation-delay: 0.4s; }
.item-video:nth-child(5) { animation-delay: 0.5s; }
.item-video:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (min-width: 480px) {
  .video-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .video {
    height: 22rem;
  }
}

@media (min-width: 768px) {
  .video-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 2rem 0;
  }
  
  .video {
    height: 20rem;
  }
  
  .video-texto {
    padding: 2.5rem;
  }
  
  .video-texto h3 {
    font-size: 2rem;
  }
  
  .video-texto p {
    font-size: 1.6rem;
  }
}

@media (min-width: 1024px) {
  .video-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .video {
    height: 18rem;
  }
}

/* Estados de carga */
.video-content.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Mejoras de accesibilidad */
.item-video:focus-within {
  outline: 2px solid var(--color-verde-famatex);
  outline-offset: 2px;
}



/* Indicador de video */
.item-video::before {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item-video:hover::before {
  opacity: 1;
}
  
  