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

.slider_two{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; 
    max-width: 1366px;
    height: 520px;
}

.slider_two h1{
    color: #BA0C2F; 
    font-size: 34px;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 82px;
    /*font-family: 'Alright Sans Black';*/
    /*font-family: "HDUAlrightSans-Black", Verdana;*/
}

.slider_two h1 br{
    display: none;
}

.slider-container-two {
    position: relative;
    width: 100%;
    height: 350px;
    margin: auto auto;
    margin-top: 0px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    max-width: 1366px;
    align-items: start;

}

.slider_two_t {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    margin-top: 50px;
    width: 100%;
    max-width: 1366px;
    overflow: scroll;
    margin: 0px 16px;
    gap: 16px;
}

.slider_two_t{
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.slider_two_t::-webkit-scrollbar {
  display: none;             /* Chrome, Safari y Opera */
}

.slider_two .slider-card-two {
    width: 272px;
    min-width: 272px;
    height: 179px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    /* Figma's CTA Card (node 8997:2842) uses justify-center with balanced
       top/bottom padding, not bottom-anchored content. */
    justify-content: center;
    align-items: start;
    box-shadow: 12px 16px 50px rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    transition: all 0.5s ease-in-out;
    /* Needed so .two_content can be positioned absolutely against this
       card instead of sharing the flex column with the title. */
    position: relative;
}

.slider_two .slider-card-two p{
    font-size: 30px;
    /* Figma text style is "Alright Sans Black" — 900 is this theme's
       equivalent weight for that style (see banner-text.css). */
	font-weight: 900;
    text-align: left;
    max-width: 241px;
    margin: 0;
    margin-left: 24px;
    /* Figma's CTA Card text color is #980C31, not the lighter #BA0C2F. */
    color: #980C31;
    /*font-family: 'Alright Sans Black';*/
    /*font-family: "HDUAlrightSans-Black", Verdana !important;*/
    line-height: 32px;
}

.slider_two .slider-card-two .two_content{
    /* Figma's icon layer is absolutely positioned inside the card (it never
       participates in the title's layout) — was a normal flex-column
       child, which pushed the title upward whenever a card actually had a
       link title to show the icon for, while cards without one kept the
       title centered alone. Absolute here keeps title position identical
       regardless of whether the icon is present. */
    position: absolute;
    left: 0;
    right: 0;
    /* Measured directly off the hover-state Figma screenshot: icon's
       bottom edge sits ~27px above the card's bottom edge. */
    bottom: 27px;
    width: 100%;
    display: flex;
    /* Figma shows the arrow bottom-left, aligned under the title's own
       left edge — not pushed to the card's right edge. */
    justify-content: start;
}

/* Was an <img src="white-arrow-icon.png"> — a 19×13 raster that renders
   pixelated at this size (no @2x asset), and a fixed src that a CSS
   background-image swap can never override anyway (the src content paints
   over the background). Replaced with a <span> in the template so
   background-image can actually control what's drawn, using the existing
   white-arrow-icon.svg (vector, crisp at any size). Figma's "CTA Card"
   component (node 8997:2842) has a documented Property 1: Default/Hover
   variant pair — Default shows no arrow at all, Hover reveals a white
   arrow — so this fades in on hover rather than swapping color. Size
   27×18 and the 48px left margin are both measured off the hover-state
   Figma screenshot (arrow left edge lines up with the title's left edge). */
.slider_two .slider-card-two .two_content .icon_btn{
    width: 27px;
    height: 18px;
    margin-left: 48px;
    background-image: url("../images-reskin/white-arrow-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slider_two .slider-card-two:hover .two_content .icon_btn{
    opacity: 1;
}


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

.slider-btn-two:last-child svg{
    fill: red;
}

.slider_two .prev-btn-two {
    left: 10px;
    background-image: url("../images-reskin/red-arrow-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_two .prev-btn-two:hover{
    background: #BA0C2F;
    background-image: url("../images-reskin/white-left-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_two .prev-btn-two:focus{
    outline: none;
}

.slider_two .next-btn-two {
    right: 10px;
    background-image: url("../images-reskin/red-right-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_two .next-btn-two:hover{
    background: #BA0C2F;
    background-image: url("../images-reskin/white-arrow-icon.png");
    background-repeat: no-repeat;
    background-position: center;
}

.slider_two .next-btn-two:focus{
    outline: none;
}


.slider_two .controls_btn{
    display: none;
}

.slider_two .controls_btn .control_btn{
    display: flex;
    justify-content: space-between;
    width: 77px;
    margin-right: 30px;
}

.slider_two .slider-card-two:hover {
    width: 368px;
    height: 242px;
    background: #980C31;
}

.slider_two .slider-card-two:hover p{
    color: #fff !important;
    margin-left: 48px;
    /* Was margin-bottom:40px — a leftover from when .two_content shared the
       flex column with this text and needed room reserved below it. Now
       that the icon is position:absolute (out of flow), this margin only
       pushed the (already vertically centered) text further up, widening
       the gap to the icon beyond what Figma shows. */
    /*font-family: 'Alright Sans Black';*/
    /*font-family: "HDUAlrightSans-Black", Verdana;*/
    line-height: 32px;
}

/* Superseded by .two_content .icon_btn above — this selector never matched
   anything (no #arrow_icon_s / no nested <a> exists in the markup, since
   .slider-card-two itself is the <a>), left here only for the mobile rules
   further down that still reference it. */

/* Añade el estilo para la animación al hacer más grande la tarjeta en el medio */
.slider_two .slider_two_t .next-card {
    background: #980C31;
    transition: 2s ease;
    width: 368px;
    height: 242px;
}

.slider_two .slider_two_t .next-card p{
    color: #fff !important;
    margin-left: 48px;
    margin-bottom: 30px;
}

.slider_two .slider_two_t .next-card a{
    margin-left: -32px;
    margin-bottom: 32px;
    width: 100%;
    opacity: 1;
}

.slider_two .slider_two_t .next-card img{
    width: 26px;
    height: 16px;
}


@media (max-width: 768px){
    .slider_two_t{
        margin-left: 0px;
        margin-top: 20px !important;
        width: auto !important;
    }
    .slider_two .slider-card-two{
        width: 235px;
        height: 200px;
        border: 1px solid #BA0C2F;
        align-items: center;
    }
    .slider_two .slider-card-two:hover {
        width: 235px;
        height: 200px;
        background: #fff;

    }
    .slider_two .slider-card-two p{
        font-size: 20px;
        color: #BA0C2F;
        margin-left: 0;
        max-width: 163px;
        margin-bottom: 15px;
        
    }
    .slider_two .slider-card-two:hover p{
        color: #BA0C2F !important;
        margin-left: 0px !important;
        margin-bottom: 0px !important;
    }

    .slider_two .slider-card-two:hover a #arrow_icon_s{
        margin-right: 180px;
    }
    .slider_two .slider-card-two a #arrow_icon_s{
        background-image: url("../images-reskin/red-right-arrow.svg");
        background-repeat: no-repeat;
        background-position: center;
        margin-right: 170px;
    }
    .slider_two .slider-card-two a{
        margin-bottom: 22px;
        margin-top: 10px;
    }
    .slider_two{
        align-items: start;
    }
    .slider_two h1{
        font-size: 26px;
        margin-top: 40px;
        width: 100%;
        padding-right: 5%;
        text-align: left;
        margin-left: 20px;
        margin-bottom: 20px !important;
    }
    .slider_two h1 br{
        display: inline;
    }
    .slider-container-two{
        /*height: 240px !important;*/
        justify-content: start !important;
        overflow: scroll;
        /*overflow: visible;*/
    }
}

@media (max-width: 756px){
    /*.slider-container-two{
        width: auto;
    }*/
    /* These cards stack full-width, one per row, at this breakpoint (see
       .slider-card-two's own max-width:768px rule) — there's nothing to
       scroll left/right, so prev/next arrows here would do nothing. This
       display:flex was previously masked site-wide by an unrelated bug in
       sliderthree-n.css (an unscoped ".control_btn{display:none!important}"
       that happened to also catch this block's arrows); fixing that bug's
       scoping unmasked this one underneath it. */
    .slider_two .controls_btn{
        display: none;
    }
}


/* nuevo */
@media (max-width: 768px){
    .slider_two_t{
        flex-direction: column;
        width: 100% !important;
        height: 100% !important;
        padding-top: 0px !important;
        max-width: 516px !important;
        padding-bottom: 70px !important;
        margin: 0px 0px;
    }
    
    .slider-container-two{
        height: 100% !important;
        justify-content: center !important;
    }
    .slider_two{
        height: 100% !important;
    }
    .slider_two h1{
        text-align: left;
        padding-right: 0%;
        margin-top: 64px;
        margin-left: 0px;
        padding: 0px 6%;
    }
    .slider_two .slider-card-two{
        width: 100% !important;
        max-width: 415px;
        height: 84px !important;
        flex-direction: row;
        justify-content: space-between;
        border: none;
        box-shadow: 12px 16px 50px rgba(0, 0, 0, 0.12) !important;
        padding: 0px 16px;
    }
    .slider_two .slider-card-two p{
        margin-bottom: 0px;
        max-width: 218px;
        font-size: 20px;
        font-weight: 900;
        padding-left: 16px;
        color: #BA0C2F !important;
        /*font-family: "HDUAlrightSans-Black", Verdana;*/
    }
    .slider_two .slider-card-two p br{
        display: none;
    }
    .slider_two .slider-card-two .two_content{
        display: none !important;
    }
    .slider_two .slider-card-two .btn_n_mobile{
        display: flex !important;
        padding-right: 16px;
    }
    .slider_two .slider-card-two .btn_n_mobile img{
        width: 26px;
    }
}

@media (max-width: 460px){
    .slider_two .slider-card-two{
        padding: 0px 0px;
        max-height: 84px;
    }
}