/* videos.css - Para la página de videos */

/* BOTÓN DE VOLVER FIJO */
.boton-volver-videos {
    position: fixed;
    top: 20px;
    left: 20px;
    background: red;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

/* ANIMACIÓN AL PASAR EL MOUSE */
.boton-volver-videos:hover {
    background: rgb(220, 0, 0);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* ANIMACIÓN DE LA FLECHA */
.boton-volver-videos svg {
    transition: transform 0.3s ease;
}

.boton-volver-videos:hover svg {
    transform: translateX(-5px);
}

/* CONTENEDOR PRINCIPAL */
.contenedor-videos-principal {
    max-width: 900px;
    margin: 100px auto 40px; /* Más margen arriba para escritorio */
    padding: 20px;
}

/* TÍTULO PRINCIPAL */
.titulo-videos {
    text-align: center;
    margin-top: 40px; /* Espacio adicional desde el botón */
    margin-bottom: 10px;
    font-size: 2.2rem;
}

/* SUBTÍTULO */
.subtitulo-videos {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Para móviles - AJUSTES ESPECÍFICOS */
@media (max-width: 768px) {
    .boton-volver-videos {
        top: 15px;
        left: 15px;
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .contenedor-videos-principal {
        margin-top: 120px; /* MUCHO más espacio arriba para móviles */
        padding: 15px;
    }
    
    .titulo-videos {
        margin-top: 60px; /* Título más abajo en móviles */
        font-size: 1.8rem; /* Título más pequeño en móviles */
    }
    
    .subtitulo-videos {
        margin-bottom: 40px;
        font-size: 1rem;
    }
    
    /* Los videos en grid para móviles */
    .contenedor-videos-principal > div:first-of-type {
        grid-template-columns: 1fr; /* Una columna en móviles */
        gap: 25px;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 480px) {
    .boton-volver-videos {
        top: 12px;
        left: 12px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .contenedor-videos-principal {
        margin-top: 100px;
        padding: 10px;
    }
    
    .titulo-videos {
        margin-top: 50px;
        font-size: 1.6rem;
    }
}
.grid-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-videos {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: #222;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
}

.video-card h3 {
    text-align: center;
    margin-bottom: 15px;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card p {
    text-align: center;
    margin-top: 10px;
    opacity: 0.9;
}

@keyframes brillo-gris {
  0% {
    text-shadow:
      0 0 2px rgba(220, 220, 220, 0.4),
      0 0 6px rgba(220, 220, 220, 0.2);
    opacity: 0.7;
  }
  50% {
    text-shadow:
      0 0 6px rgba(240, 240, 240, 0.9),
      0 0 14px rgba(240, 240, 240, 0.6),
      0 0 24px rgba(240, 240, 240, 0.3);
    opacity: 1;
  }
  100% {
    text-shadow:
      0 0 2px rgba(220, 220, 220, 0.4),
      0 0 6px rgba(220, 220, 220, 0.2);
    opacity: 0.7;
  }
}

.copyright-fijo {
    position: fixed;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: rgba(200, 200, 200, 0.8);
    z-index: 999;
    pointer-events: none; /* no estorba clics */
    animation: brillo-gris 3s infinite ease-in-out;
}

/* Ajuste para celular */
@media (max-width: 600px) {
    .copyright-fijo {
        font-size: 11px;
        bottom: 8px;
        right: 8px;
    }
}

/* ✨ Brillo verde para link de YouTube */
@keyframes brillo-verde {
  0% {
    text-shadow: 0 0 4px rgba(0, 255, 120, 0.3);
    opacity: 0.8;
  }
  50% {
    text-shadow:
      0 0 8px rgba(0, 255, 120, 0.8),
      0 0 16px rgba(0, 255, 120, 0.5);
    opacity: 1;
  }
  100% {
    text-shadow: 0 0 4px rgba(0, 255, 120, 0.3);
    opacity: 0.8;
  }
}

.youtube-brillo {
  color: #00ff88;
  font-weight: bold;
  text-decoration: none;
  animation: brillo-verde 2.8s infinite ease-in-out;
  transition: transform 0.3s ease;
}

/* pequeño efecto al pasar el mouse */
.youtube-brillo:hover {
  transform: scale(1.05);
}

.texto-mas-trabajo {
    color: rgba(255, 60, 60, 1); /* rojo brillante */
    opacity: 0.9;
    font-size: 15px;
    text-align: center;
}

.video-6 {
    grid-column: 3;
    grid-row: 2;
}
