.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.slides {
    display: flex;
    width: 400%;
    transition: transform 0.5s ease;
    height: 600px; /* o el alto que prefieras */
}
.slide {
    flex: 0 0 25%;
    position: relative;
}
.slide img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}
.caption {
    position: absolute;
    top: 25%;
    left: 5%;
    font-size: clamp(16px, 2vw + 1rem, 40px);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
}
.caption.right {
    right: 5%;
    left: auto;
}
.caption b{
    color: var(--color-B);
    font-weight: 700;
}
.caption p{
    font-size: clamp(16px, 2vw, 23px);
    text-align: center;
    line-height: 1.2;
}
/* Mostrar el salto solo en pantallas grandes */
.desktop-break {
  display: inline;
}
.white{
    color: var(--color-D);
}
.black{
    color: var(--color-C);
}
.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    background: var(--color-D);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: var(--color-A);
}
/* RESPONSIVE */
@media screen and (max-width: 991px) {
    .slider{
        width: 90% !important;
        margin: 0px auto;
    }
    .slide img{
        border-radius: 20px;
    }
    .caption {
        left: auto;
    }
    .caption.right {
        right: auto;
        left: auto;
    }
    .desktop-break {
        display: none;
    }
}