/* CSS */
.slidersix-n{
    margin-top: 0px !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
}

.slider_six{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1366px;
    /* auto (not a fixed 700px) — the fixed height left dead space below
       the dots that the next section's own top/bottom margin (set inline
       by the template from the block's margin-top/margin-bottom fields)
       then stacked on top of, making the gap to neighboring sections look
       oversized. */
    height: auto;
}

.slider_six h1{
    color: #BA0C2F;
    font-size: 34px;
    text-align: center;
    margin: 0px 20px;
    margin-bottom: 50px;
    /* margin-top: 82px; */
    font-family: 'Alright Sans Black';
}

.slider-container-six {
    position: relative;
    width: 100%;
    height: 540px;
    max-width: 1366px;
    margin: auto auto;
    margin-top: 0px;
    overflow-x: clip;
    display: flex; 
    justify-content: start;
    align-items: center;
}

.slider_six_t {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
}

.slider_six .slider-card-six {
    /* Figma node 9264:12269: active card 560px wide, 112px gap to its
       neighbors (carrousel-1-img/-3-img are also 340px — this
       uniform-width carousel can't size the side cards down without
       rewriting the JS's centering math, which assumes every card is the
       same width; 560px here keeps the active card pixel-accurate instead). */
    width: 560px;
    height: 256px;
    margin-right: 112px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    border-radius: 20px;
    opacity: 0.5;
    transition: all 0.9s ease-in;
}

.slider_six .slider-card-six img{
    /* Fully rounded by default — inactive peek cards are just the image,
       nothing below it. The active card overrides this to round only the
       top corners, below. */
    border-radius: 20px;
    /* Matches the card's own width at every breakpoint instead of a fixed
       560px — on mobile (where the card shrinks via the width-only
       breakpoints below) a fixed-width image overflowed past the card's
       edges, making it look larger than its card. Height stays explicit
       per breakpoint (mirrors each breakpoint's inactive-card height,
       which is image-only) since .slider-card-six's own height covers the
       image+text panel together once a card becomes active. */
    width: 100%;
    height: 256px;
    object-fit: cover;
    display: block;
}

.slider_six .slider-card-six:last-child{
    margin-right: 0px;
}

.slider-btn-six {
    width: 36px;
    height: 36px;
    border-radius: 50px;
    font-size: 24px;
    background: transparent;
    cursor: pointer;
    background: #BA0C2F;
}

.slider_six .prev-btn-six {
    left: 10px;
    background-image: url("../images-reskin/white-left-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
}

.slider_six .prev-btn-six:hover{
    background: #BA0C2F1A;
    background-image: url("../images-reskin/red-arrow-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_six .prev-btn-six:focus{
    outline: none;
}

.slider_six .next-btn-six {
    right: 10px;
    background-image: url("../images-reskin/white-arrow-icon.png");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_six .next-btn-six:hover{
    background: #BA0C2F1A;
    background-image: url("../images-reskin/red-right-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_six .next-btn-six:focus{
    outline: none;
}

.slider_six .controls_btn{
    display: flex;
    width: 100%;
    justify-content: center;
    position: absolute;
    margin-top: 70px;
}

.slider_six .controls_btn .control_btn{
    display: flex;
    justify-content: space-between;
    width: 710px;
}

/* Añade el estilo para la animación al hacer más grande la tarjeta en el medio */

.slider_six .slider_six_t .center-card,
.slider_six .slider_six_t .next-card {
    /* auto (not a fixed 505px) so the text panel above can grow past its
       249px min-height for longer copy without being squeezed/clipped. */
    height: auto;
}

.slider_six .slider_six_t .center-card h2,
.slider_six .slider_six_t .next-card h2{
    opacity: 1 !important;
}

.slider_six .slider_six_t .slider-card-six.center-card,
.slider_six .slider_six_t .slider-card-six.next-card{
    opacity: 1 !important;
}

.slider_six .slider_six_t .slider-card-six.center-card img,
.slider_six .slider_six_t .slider-card-six.next-card img{
    /* The text panel below continues this card's shape with its own
       bottom-only radius — rounding the image's bottom corners too would
       leave two separate-looking rounded shapes stacked with a seam
       between them instead of one continuous card. */
    border-radius: 20px 20px 0 0;
}

.slider_six .slider-card-six .content_texts{
    /* opacity: 0; */
    transition: all 0.6s ease-in;
    height: 0;
    margin-top: -15px;
}

.slider_six .center-card .content_texts,
.slider_six .next-card .content_texts{
    /* Figma: 249px text panel below the 256px image (505px card total).
       height:auto (rather than a hardcoded 249px) so longer copy than the
       Figma placeholder isn't clipped; the base rule's -15px margin-top
       (meant to collapse this panel to nothing while inactive) doesn't
       apply here, otherwise it pulls the panel up to overlap the image
       by 15px, which is what made the image/red-panel seam look uneven. */
    height: auto;
    min-height: 249px;
    /* -1px (not 0) deliberately overlaps the image by a hair: flex layout
       rounds each sibling's height to the nearest device pixel
       independently, and those two roundings don't always land on the
       same line, leaving a 1px sliver of whatever is behind the card
       (white) showing through between them. */
    margin-top: -1px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent linear-gradient(115deg, rgba(211, 17, 69, 1) 0%, rgba(139, 0, 20, 1) 65%, rgba(139, 0, 20, 1) 100%) 0% 0% no-repeat padding-box;
    box-shadow: 12px 16px 50px rgba(0, 0, 0, 0.12);
    /* No border (was "1px solid rgba(0,0,0,0)" — fully transparent, so
       invisible either way) — the browser still rasterizes & anti-aliases
       a "transparent" border's edge, which on a retina display visibly
       inset the panel's left/right edges ~2px relative to the image above
       it despite both boxes measuring the exact same width/position in
       the DOM (getBoundingClientRect confirmed 0px difference). Removing
       it made the two edges land on the same pixel in testing. */
    border-radius: 0px 0px 20px 20px;
    width: 100%;
}

.slider_six .slider-card-six .content_texts h2{
    text-align: center;
    color: #fff;
    font: normal normal normal 56px/64px Drina;
    max-width: 496px;
    margin-bottom: 20px;
    text-transform: none;
    opacity: 0;
}

.slider_six .slider-card-six .content_texts p{
    font-family: 'Alright Sans Regular';
    font-size: 16px;
    color: #fff;
    text-align: center;
    line-height: 24px;
    max-width: 496px;
}


.circle_controls_six{
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.circle_controls_six .slider-dots-six {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.circle_controls_six .slider-dots-six .slider-dot-six {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #BA0C2F;
    background-color: #fff; /* Color del círculo inactivo */
    margin: 0 5px;
    cursor: pointer;
}

.circle_controls_six .slider-dots-six .slider-dot-six.active {
    background-color: #BA0C2F; /* Color del círculo activo */
}

@media (max-width: 850px){
    .slider_six .slider-card-six{
        width: 500px !important;
        margin-right: 80px !important;
    }
    .slider_six .slider_six_t .next-card{
        height: 450px !important;
    }
    .slider_six .controls_btn .control_btn{
        width: 620px !important;
    }
}

@media (max-width: 768px){
    .slider_six .slider-card-six{
        margin-right: 20px !important;
    }
    .slider_six .controls_btn .control_btn {
        width: 685px !important;
    }
    .slider_six h1{
        font-size: 26px !important;
    }
}

@media (max-width: 700px){
    .slider_six{
        height: auto !important;
    }
    .slider-container-six{
        height: auto !important;
        min-height: 365px;
        margin-bottom: 0px !important;
    }
    .slider_six .slider-card-six{
        width: 400px !important;
        height: 183px !important;
    }
    .slider_six .slider-card-six img{
        height: 183px;
    }
    .slider_six .slider_six_t .next-card {
        height: auto !important;
    }
    .slider_six .slider-card-six .content_texts h2{
        font-size: 35px;
        margin-bottom: 0px;
        line-height: 50px;
    }
    .slider_six .slider-card-six .content_texts p{
        font-size: 14px;
        max-width: 300px;
    }
    .slider_six h1{
        margin-top: 16px !important;
        margin-bottom: 24px !important;
    }
}

@media (max-width: 530px){
    .slider_six .slider-card-six{
        width: 300px !important;
        height: 150px !important;
    }
    .slider_six .slider-card-six img{
        height: 150px;
    }
    .slider_six .slider_six_t .next-card {
        height: auto !important;
    }
    .slider_six .slider-card-six .content_texts p{
        max-width: 250px !important;
    }
    .slider_six .controls_btn .control_btn {
        width: 470px !important;
    }
}

@media (max-width: 430px){
    .slider-container-six{
        height: auto !important;
        min-height: 250px;
    }
    .slider_six {
        height: auto !important;
    }
}

@media (max-width: 430px){
    .slider_six .slider-card-six{
        width: 250px !important;
        height: 115px !important;
    }
    .slider_six .slider-card-six img{
        height: 115px;
    }
    .slider_six .slider-card-six .content_texts h2{
        font-size: 30px;
    }
    .slider_six .slider-card-six .content_texts p{
        max-width: 180px !important;
        margin-bottom: 0px !important;
    }
    .slider_six .slider_six_t .next-card {
        height: auto !important;
    }
    .slider_six .controls_btn .control_btn {
        width: 360px !important;
    }
}