/* --- Estilos del Mural (Bento Grid) --- */
.mural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 15px;
    padding: 20px;
}

.mural-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.mural-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

.mural-item:hover img { transform: scale(1.1); }

/* --- Modales --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 20, 40, 0.95);
    display: none; /* Oculto por defecto */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #001e36;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    border: 1px solid #d4af37;
}

/* --- Layout Momentos (Galería Izquierda, Texto Derecha) --- */
.layout-momentos {
    display: flex;
    height: 100%;
}

.momentos-gallery { width: 60%; padding: 20px; background: #000; }
.momentos-info { width: 40%; padding: 40px; display: flex; flex-direction: column; }

/* --- Layout Talento (Lista Izquierda, Detalle Derecha) --- */
.layout-talento {
    display: flex;
    height: 100%;
}

.talento-list { width: 30%; border-right: 1px solid #d4af37; padding: 20px; overflow-y: auto; }
.talento-detail { width: 70%; padding: 40px; overflow-y: auto; }

.project-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.project-item.active { background: rgba(212, 175, 55, 0.2); border-left-color: #d4af37; }

/* Botón Regresar */
.btn-close {
    position: absolute;
    bottom: 20px; right: 20px;
    padding: 10px 25px;
    background: #d4af37;
    color: #001e36;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

/* Responsividad */
@media (max-width: 900px) {
    .layout-momentos, .layout-talento { flex-direction: column; overflow-y: auto; }
    .momentos-gallery, .momentos-info, .talento-list, .talento-detail { width: 100%; height: auto; }
}