/* galeria_style.css */

.gallery-section {
    padding: 60px 5%;
    background-color: #f9f9f9;
}

.section-header { text-align: center; margin-bottom: 40px; }

.section-header h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
}

.section-header p { color: var(--text-muted); font-size: 1.2rem; }

/* Grid Collage */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    /* Animación entrada */
    animation: fadeIn 0.6s forwards;
    opacity: 0;
}

.gallery-item.medium { grid-column: span 2; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }

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

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.gallery-item:hover img { transform: scale(1.05); }

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 64, 128, 0.8), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .overlay { opacity: 1; }

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay-content { transform: translateY(0); }
.overlay-content h3 { font-size: 1.3rem; margin-bottom: 5px; font-weight: 600; }

/* Botón Ver Más */
.gallery-footer { text-align: center; margin-top: 40px; }

.view-more-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 64, 128, 0.3);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 64, 128, 0.4);
    color: white;
}

.view-more-btn i { transition: transform 0.3s ease; margin-left: 10px; }
.view-more-btn:hover i { transform: translateX(5px); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1200px) { .photo-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) { .photo-gallery { grid-auto-rows: 220px; } }
@media (max-width: 768px) {
    .gallery-section { padding: 40px 4%; }
    .photo-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 10px; }
    .gallery-item.large { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 480px) {
    .photo-gallery { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .gallery-item.medium, .gallery-item.large { grid-column: span 1; }
}