/* General */
body {
    margin: 0;
    padding: 0;
    font-family: "Afacad Flux", sans-serif;
}

/* Carrusel */
.carrusel {
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
    position: relative;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
}

.titulocarrusel {
    font-size: 24px;
    color: #ff6969;
    margin-bottom: 15px;
    font-weight: bold;
}

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

#slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 10px; /* Espaciado entre imágenes */
}

.slide {
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.slide img {
    width: 100%;
    height: 200px; /* Altura fija */
    object-fit: cover; /* Recorta y ajusta las imágenes */
    display: block;
    border-radius: 10px;
}




/* Botones de Navegación */
.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    font-size: 24px;
}

.btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.btn-left {
    left: 10px;
}

.btn-right {
    right: 10px;
}

/* Íconos de Font Awesome */
.btn::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.btn-left::before {
    content: '\f104'; /* Flecha izquierda */
}

.btn-right::before {
    content: '\f105'; /* Flecha derecha */
}

/* Responsividad */
@media (max-width: 768px) {
    .slide {
        min-width: 50%; /* Mostrar 2 imágenes en pantallas pequeñas */
    }

    .btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .slide {
        min-width: 100%; /* Mostrar 1 imagen en pantallas muy pequeñas */
    }

    .btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
