﻿

/*fondo*/
.contenedor-fondo-VD {
    visibility: hidden;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.72);
    left: 0;
    top: 0;
    bottom: 0;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    z-index: 1100;
}

    .contenedor-fondo-VD.show-fondo-card-VD {
        visibility: visible;
        display: block;
        opacity: 0.8;
    }


/*cards*/

.ctn-visadebito {
    margin: 0px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    background: var(--primario-variante-5);
    padding: 82px 102px;
    align-items: center;
    position: relative; /* Establece un contexto de apilamiento */
    z-index: auto; /* Asegúrate de que no interfiera */
    position:relative;
}
    .ctn-visadebito .swiper-button-next, .ctn-visadebito .swiper-button-prev {
        /*top: 23.5rem;*/

        /*position:relative;*/
        color: var(--icons-tertiary)
    }

.ctn-visadebito .swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: 150px;
}

.ctn-visadebito .swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: 150px;
}

.title-visadebito {
    color: var(--title-1);
    text-align: center;
    /* H2 */
    font-family: var(--lexend);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px; /* 133.333% */
    margin: 0;
}

.subtitle-visadebito {
    color: var(--sub-title-1);
    text-align: center;
    /* Subtitle 1 */
    font-family: var(--lexend);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
    margin: 0;
}

.ctn-description-back {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.ctn-card-visadebito {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: row;
    gap: 60px;
    overflow: hidden;
    padding: 10px;
    max-width: 1050px;
    position: relative; /* No establecer z-index si no es necesario */
    z-index: auto;
    opacity: 0;
    transition: opacity 1.6s ease-out;
}
.subctn-card-visadebito {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    gap: 18px;
    padding: 10px;
    width: 100%;
    border: 1px transparent solid;
    border-bottom-color: var(--texto-disabled);
}
    .card-visadebito-front {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 345px;
    height: 100%;
    gap: 4px;
    min-height: 300px;
    align-items: flex-start;
    padding: 30px 24px;
    flex-shrink: 0;
    border-radius: 20px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    backface-visibility: hidden;
    background: white;
    transform: rotateY(0deg);
    transition: transform 1.2s;
    justify-content: space-between;
}

.card-visadebito-back {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 345px;
    height: 100%;
    gap: 32px;
    min-height: 300px;
    padding: 44px 24px;
    flex-shrink: 0;
    border-radius: 20px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    backface-visibility: hidden;
    background: white;
    transform: rotateY(180deg);
    transition: transform 1.2s;
    top: -100%;
    align-items: flex-start;
    justify-content: space-between;
}

.ctn-card-visadebito.swiper {
    width: 100%;
}

.ctn-card-visadebito .swiper-wrapper {
    width: 100%;
    /*height: 36em;*/
    display: flex;
    align-items: center;
}

/*.swiper-slide:not(.swiper-slide-active) {
    filter: blur(1px);
}*/

.swiper-slide {
    margin: 0 2rem 0 0;
}

.swiper-slide-active {
    /*margin: 0;
    margin: 2rem;*/
}

.swiper-slide-prev {
   /* margin-left: 2rem*/
}

.swiper-slide-next {
   /* margin-right: 2rem*/
}

.show-card-VD {
   /* z-index: 1101 !important;*/
}

.sub-ctn-card-visadebito {
    width: 345px !important;
    height: 300px !important;
    transition: transform 0.3s ease-in-out;
}
    .sub-ctn-card-visadebito.is-flipped-VD {
        z-index: 1200; /* Más alto que el fondo y Swiper */
        position: relative; /* Asegúrate de que respete el stacking context */
    }
    .sub-ctn-card-visadebito.is-flipped-VD .card-visadebito-front {
        transform: rotateY(180deg);
    }

    .sub-ctn-card-visadebito.is-flipped-VD .card-visadebito-back {
        transform: rotateY(0deg);
    }

    .sub-ctn-card-visadebito:hover {
        transform: scale(1.05);
    }

.sub-card-visadebito-front {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    width:100%;
}

.sub-card-visadebito-back {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
    min-height: 199px;
    max-height: 199px;
    height: 100%;
}

.title-item-visadebito {
    color: var(--title-2);
    /* H3 */
    font-family: var(--lexend);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 140% */
    margin: 0px;
}
.subtitle-item-visadebito {
    color: var(--texto-secundario);
    font-feature-settings: 'liga' off, 'calt' off;
    /* Caption Text */
    font-family: var(--lexend);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
    margin: 0px;
}
.description-item-visadebito {
    color: var(--texto-disabled);
    font-feature-settings: 'liga' off, 'calt' off;
    /* Caption Text */
    font-family: var(--lexend);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px; /* 150% */
    margin: 0px;
}

.txt-back-visadebito {
    color: var(--texto-secundario);
    font-feature-settings: 'liga' off, 'calt' off;
    /* Body 1 */
    font-family: var(--lexend);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    margin: 0;
}

.txt-link-back {
    padding: 8px 0px;
    align-self: stretch;
    color: var(--primario-primario);
    font-family: var(--lexend);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/*btn*/
.btn-card-visadebito {
    position: absolute;
    right: 3%;
    background: transparent;
    cursor: pointer;
    padding: 0px;
    transition: transform 0.3s ease-in;
    top: 83%;
}

    .btn-card-visadebito:hover {
        transform: scale(1.05)
    }

    .btn-card-visadebito:active {
        outline: none
    }

    .btn-card-visadebito:focus {
        outline: none
    }

    .btn-card-visadebito:focus-visible {
        outline: none
    }


.ctn-btn-visadebito {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

    .ctn-btn-visadebito .btn-ver{
        display: flex;
        width: 320px;
        padding: 16px 32px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        border-radius: 36px;
        background: var(--primario-primario);
        color: #FFF !important;
        font-family: var(--lexend);
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        transition:transform 0.3s ease-in-out;
        cursor:pointer;
    }

        .ctn-btn-visadebito .btn-ver:hover {
            transform:scale(1.05)
        }

    .ctn-btn-visadebito span {
        color: var(--texto-secundario);
        font-feature-settings: 'liga' off, 'calt' off;
        /* Body 1 */
        font-family: var(--lexend);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 150% */
        display: flex;
        align-items: center;
        justify-content: center;
        align-content: center;
        flex-wrap: wrap;
    }
            .ctn-btn-visadebito span a {
                display: flex;
                padding: 14px var(--spacing-12px);
                justify-content: center;
                align-items: center;
                gap: 8px;
                color: var(--btn-text-link) !important;
                font-family: var(--lexend);
                font-size: 16px;
                font-style: normal;
                font-weight: 500;
                line-height: normal;
                text-decoration-line: underline;
                text-decoration-style: solid;
                text-decoration-skip-ink: none;
                text-decoration-thickness: auto;
                text-underline-offset: auto;
                text-underline-position: from-font;
                transition: transform 0.3s ease-in-out;
                cursor: pointer;
            }
                .ctn-btn-visadebito span a:hover {
                    transform: scale(1.05)
                }

.link-ver-card-visadebito {
    display: flex;
    flex-direction:column;
    padding: 14px var(--spacing-12px);
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--btn-text-link) !important;
    font-family: var(--lexend);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.texto-oculto {
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}
.ctn-visadebito .texto-visible {
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
} 
  
  .ver-card {
    opacity: 1 !important;
} 
  
  @media screen and (max-width:1464px) {
    .ctn-visadebito .swiper-button-next{
        display: none !important;
    }

    .ctn-visadebito .swiper-button-prev {
        display: none !important;
    }
} @media screen and (max-width:600px) {

    .ctn-visadebito {
        margin: 0px;
        padding: 50px 24px;
        gap: 30px;
    }

    .ctn-card-visadebito {
        gap: var(--spacing-48px);
        /*padding:0px;*/
    }

    .swiper-wrapper{
        height:auto;
    }

    .swiper-slide {
        margin: 0 1rem 0 0;
    }
    .swiper-slide-prev{
        margin-left:0rem;
    }

    .txt-back-visadebito{
        font-size:14px;
    }
    .ctn-btn-visadebito .btn-ver{
        width:100%;
    }

    .title-visadebito {
        font-size: 20px;
        line-height: 28px;
    }

    .title-item-visadebito {
        font-size: 18px;
        line-height: 30px;
    }

    .subtitle-item-visadebito {
        font-size: 14px;
        line-height: 21px;
    }

    .ctn-btn-visadebito span{
        flex-direction:column;
    }
} 
  
  @media screen and (max-width:400px) {

    .card-visadebito-front {
        width: 100%;
        padding:20px;
    }

    .card-visadebito-back {
        width: 100%;
        padding: 20px;
    }

    .sub-ctn-card-visadebito {
        width: 93% !important;
    }
}

