﻿/*
// === MODAL UNIVERSAL - INICIO - SCRIPTHEADERS === //
*/

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: hidden;
}

.modal-contenido {
    margin: auto;
    display: block;
    width: 90%;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.cerrar {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.cerrar:hover {
    color: #ff3333;
}

/* Estilos para galerías - CENTRADO EN TODAS LAS PANTALLAS */
.contenedor-galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrado horizontal en todas las pantallas */
    align-items: center; /* Centrado vertical */
    gap: 10px;
    margin: 10px 0;
    width: 100%;
}

.foto-perfil-miniatura {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.foto-perfil-miniatura:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Tablet - Pantallas medianas */
@media (max-width: 1024px) {
    .contenedor-galeria {
        gap: 12px;
    }
    
    .foto-perfil-miniatura {
        width: 130px;
        height: 130px;
    }
}

/* Móviles - Pantallas pequeñas */
@media (max-width: 768px) {
    .contenedor-galeria {
        gap: 10px;
        padding: 0 10px;
    }
    
    .foto-perfil-miniatura {
        width: 100px;
        height: 100px;
    }
    
    .modal-contenido {
        width: 95%;
        max-height: 85vh;
    }
    
    .cerrar {
        top: 15px;
        right: 25px;
        font-size: 30px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 480px) {
    .contenedor-galeria {
        gap: 8px;
        padding: 0 5px;
    }
    
    .foto-perfil-miniatura {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    
    .cerrar {
        top: 10px;
        right: 15px;
        font-size: 25px;
    }
}