/* Fix para visualización completa de imágenes en el carrusel */

/* Ajustes del contenedor del swiper para mostrar imágenes completas */
.hero-gallery {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px; /* Espacio para las flechas */
}

/* Ajustar altura del swiper wrapper */
.hero-gallery .swiper-wrapper {
    align-items: center;
}

/* Hacer que las imágenes se vean completas sin recortes */
.hero-gallery .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.hero-gallery .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 600px; /* Altura máxima para desktop */
}

.hero-gallery .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain; /* Muestra la imagen completa sin recortar */
    display: block;
    margin: 0 auto;
}

/* Posicionamiento de las flechas más cerca de la imagen */
.hero-gallery-prev,
.hero-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(174, 173, 254, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
    font-size: 18px;
}

.hero-gallery-prev:hover,
.hero-gallery-next:hover {
    background: rgba(174, 173, 254, 1);
    transform: translateY(-50%) scale(1.1);
}

.hero-gallery-prev {
    left: 10px; /* Más cerca de la imagen */
}

.hero-gallery-next {
    right: 10px; /* Más cerca de la imagen */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gallery {
        padding: 0 50px;
    }
    
    .hero-gallery .swiper-slide img {
        max-height: 400px;
    }
    
    .hero-gallery-prev,
    .hero-gallery-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .hero-gallery-prev {
        left: 5px;
    }
    
    .hero-gallery-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .hero-gallery {
        padding: 0 40px;
    }
    
    .hero-gallery .swiper-slide img {
        max-height: 300px;
    }
    
    .hero-gallery-prev,
    .hero-gallery-next {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}