/* Contenedor principal de las burbujas de video */
.videos-burbujas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos para cada burbuja de video individual */
.burbuja-video {
    width: 300px;
    height: 300px;
    position: relative;
    opacity: 0;
    /* La animación se asignará dinámicamente con JS */
}

/* Título de la obra debajo de la burbuja */
.video-title {
    position: absolute;
    bottom: -2.5rem; /* Espacio debajo de la burbuja */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-family: 'Consolas', 'Courier New', monospace;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 5px #00ff99;
}

/* Nuevos keyframes para las animaciones de entrada */
@keyframes from-top {
  from { transform: translateY(-300px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes from-bottom {
  from { transform: translateY(300px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes from-left {
  from { transform: translateX(-300px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes from-right {
  from { transform: translateX(300px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Estilos de la cabeza "LA MATRIX TE CONTROLA" */
.mente {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    color: #39ff14;
    border-radius: 8px;
    font-size: 1.38em;
    font-family: 'Consolas', 'Courier New', monospace !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px #00ff99, 0 0 2px #000;
    pointer-events: none;
    z-index: 1;
    text-align: center;
    animation: mentecontrola 3s infinite;
    align-items: center;
    left: 0;
}

@keyframes mentecontrola {
    from {
        width: 0;
        opacity: 0.2;
    }
    30% {
        width: 0;
        opacity: 0.7;
    }
    90% {
        width: 100%;
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: #bbb;
    text-decoration: none;
}