.carousel-section {
    padding: 20px;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    min-height: 220px;
    /* evita que el texto desaparezca al inicio */
}

.carousel-slide {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.8s ease;
    width: 100%;
    padding: 30px;
    background: white;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    z-index: 1;
}

.carousel-slide h2 {
    font-size: 28px;
    background: linear-gradient(135deg, #ff6a00, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.carousel-slide p {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

.carousel-controls {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: 10;
    position: absolute;
}

.carousel-controls button {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 10px 20px;
    margin: 0 30px;
    color: #ff6600;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.carousel-controls button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    /* grosor del borde */
    background: linear-gradient(135deg, #ff6a00, #ff0000);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}


@media (max-width: 992px) {
    .carousel-controls button {
        padding: 0px 5px;
        margin: 15px 10px;
    }
}