/* Contenedor principal */
.carrousel {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: transparent;
}
.slides {
    position: relative;
    width: 100%;
    height: 100vh;
    /* ocupa toda la altura visible */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.slide.active {
    opacity: 1;
}

/* Título centrado */
.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.caption h2 {
    font-size: 3rem;
    /* tamaño moderado */
    margin: 0;
}

.caption h3 {
    font-size: 1.8rem;
    /* más pequeño */
    margin: 0;
}

/* Flechas */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    font-size: 2rem;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Puntos */
.dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

.slide {
    text-align: center;
    /* Centra todo el contenido */
    margin: 0 auto;
    /* Asegura centrado horizontal */
}

.slide h1,
.slide h2,
.slide h3 {
    margin: 0;
    /* Limpia márgenes por defecto */
}

.slide h1 {
    color: #ffffff;
    /* blanco fuerte */
    font-weight: 900;
    /* negrita máxima */
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0,9);
    /* sombra más visible */
    margin: 0;
}

.espacio {
    height: 20px;
    /* Ajustá el valor según el espacio que quieras */
}



/* Ajuste solo en móviles */
@media screen and (max-width: 600px) {
    .slide h1 {
        font-size: 2rem;
        /* más pequeño en móvil */
    }
}

/* Responsive */
@media (max-width: 600px) {
    .slides {
        height: 60vh;
    }

    /* más cómodo en móvil */
    .caption h2 {
        font-size: 2rem;
    }

    .caption h3 {
        font-size: 1.2rem;
    }
}