/* =========================
   CARRUSEL BÃSICO
   ========================= */

.carrusel {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 15s infinite;
}

/* IMÃGENES */
.s1 {
    background-image: url('../img/slide1.jpg');
    animation-delay: 0s;
}

.s2 {
    background-image: url('../img/slide2.jpg');
    animation-delay: 5s;
}

.s3 {
    background-image: url('../img/slide3.jpg');
    animation-delay: 10s;
}

.s4 {
    background-image: url('../img/slide4.png');
    animation-delay: 20s;
}

/* ANIMACIÃN */
@keyframes fade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    30%  { opacity: 1; }
    40%  { opacity: 0; }
    100% { opacity: 0; }
}

/* SOMREADO */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 110px;
    background: rgba(0, 0, 0, 0.90);
    z-index: 1;
}

/* =========================
   TEXTO DEL CARRUSEL
   ========================= */

.texto {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    z-index: 2;
    padding: 0 10px;
}

.texto h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.texto p {
    font-size: 14px;
    font-weight: 900;
}


