/* Contenedor principal del Swiper (sin max-width) */
.swiper-container {
    width: 100%;
    height: auto;
    margin: 40px 0; /* Quitamos el margin auto aquí, lo maneja el padre */
    padding-bottom: 50px;
    position: relative;
    margin: auto;
    text-align: center;
}
/* Botones de navegación de Swiper - ESTILOS PERSONALIZADOS */
.swiper-button-prev, .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-principal);
    color: white;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--sombra-tarjeta);
    transition: var(--transicion-suave);
    opacity: 0.9;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
    background-color: var(--color-secundario);
    opacity: 1;
}

/* Posicionamiento: Mantenemos la traslación negativa para que el centro del botón
   quede en el borde del contenedor, pero como el padre tiene overflow: hidden, se oculta limpiamente. */
.swiper-button-prev {
    left: 0;
}
.swiper-button-next {
    right: 0;
}

.swiper-button-prev::after, .swiper-button-next::after {
    /* Ocultamos el icono por defecto de Swiper */
    content: '';
}

/* Estilo para los iconos de flecha personalizados */
.swiper-button-prev .arrow-icon, .swiper-button-next .arrow-icon {
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Paginación (dots) de Swiper */
.swiper-pagination-bullets {
    bottom: 0px !important;
}
.swiper-pagination-bullet {
    background-color: #bbb;
    opacity: 0.8;
    transition: background-color 0.3s ease;
}
.swiper-pagination-bullet-active {
    background-color: var(--color-principal);
    opacity: 1;
}


/* Media Query para móvil */
@media (max-width: 768px) {
    section {
        padding: 60px 3%;
    }
    /*
    .swiper-button-prev, .swiper-button-next {
        display: none !important;
    }
    */
}
