.carrousel {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    font-family: sans-serif;
    margin-top: 64px;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 3;
    text-align: center;
}

.caption h1 {
    font-size: 3.5rem;
    margin: 0;
}

/* Cambiado de h3 a h2 para corregir el error de jerarquía */
.caption h2 {
    font-size: 1.6rem;
    font-weight: 300;
    margin: 10px 0 0 0;
}

.espacio {
    height: 20px;
}

.dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .caption h1 {
        font-size: 2rem;
    }

    .carrousel {
        height: 60vh;
    }
}