/* Contenedor principal */
#slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Cada slide */
.slide {
    margin-top: 80px;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

/* Slide activo */
.slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Imagen */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Efecto de zoom suave */
    transform: scale(1);
    transition: transform 6s linear;
}

.slide.active img {
    transform: scale(1.01);
}

/* Contenido */
.contenido {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 8%;

    transform: translateY(-50%);

    max-width: 600px;
    color: white;

    opacity: 0;
    transition: all 0.8s ease;
}

/* Animación del contenido */
.slide.active .contenido {
    opacity: 1;
    
}

/* Título */
.contenido h1 {
    font-size: clamp(2.5rem, 3vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    color: #BC852F;
}

/* Descripción */
.text-slide {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.4;
    margin-bottom: 30px;
    color: #000;
}

/* Botón */
.btn-slide {
    display: inline-block;
    padding: 18px 28px;
    background: #BC852F;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 20px;
    transition: all .3s ease;
}


.btn-slide:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;

    cursor:pointer;

    background:rgba(255,255,255,0.2);
    color:#000;
    font-size:24px;
    backdrop-filter:blur(10px);
    transition:.3s;
}

.arrow:hover{
    background:rgba(255,255,255,0.4);
}

.prev{
    left:20px;
}

.next{
    right:20px;
}
@media (max-width: 768px) {

    #slider {
        height: 80vh;
    }

    .contenido {
        left: 5%;
        right: 5%;
        max-width: none;
    }

    .contenido h1 {
        margin-top: 25px;
        margin-bottom: 10px;
        font-size: 30px;
    }

    .contenido .text-slide {
        margin-bottom: 10px;
        margin-top: 120px;
        font-size: clamp(1.1rem, 2vw, 1.3rem);
        text-align: left;

    }

    .contenido .btn-slide {
        margin-top: 30px;
        text-align: center;
        padding: 18px 20px;
    }
    .arrow{
        background:rgba(255,255,255,0.6);
    }
    .text-slide {
        background: rgba(213, 210, 210, 0.7);
        border-radius: 5px;
        padding: 3px 5px;
    }

}