/* css/galeria.css - Estilos para la nueva página de galería */

/* Estilos para las pestañas (Tabs) */
.galeria-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 15px 40px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tab-link i {
    font-size: 1.3rem;
}

.tab-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-link.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* Grid de Fotos (Mosaico) */
.grid-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.foto-item {
    display: block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    aspect-ratio: 1 / 1; /* Hace que todas las fotos sean cuadradas */
}

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

.foto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.3);
}

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

/* Grid de Videos */
.grid-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding-bottom: 15px;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-desc {
    padding: 15px 15px 5px;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .galeria-tabs {
        gap: 10px;
    }
    .tab-link {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
    .grid-fotos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    .grid-videos {
        grid-template-columns: 1fr;
    }
}