/* Estilos CSS de la galería de destinos */

/* Estilos del contenedor */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    margin: 0px;
    background: linear-gradient(135deg, #b9b9c9 0%, #f4f7fd 100%); /* Fondo sutil y con buen contraste */
    border-radius: 10px;
}

.mini-gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px)); /* Formato reducido */
}

/* Estilos de los elementos */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    color: #665;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

/* Superposición de texto */

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Animación de entrada de la galería */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .mini-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}