/* =========================================================
   HERO
   ========================================================= */

.bt_containerHero {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.bt_heroFianzas {
    height: 95vh;
    width: 100%;
    background: url("../images/back-btech.webp") no-repeat center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: stretch;
}

.bt_boxHeroFianzas {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    margin: 0;
}

.bt_boxImgFianzas {
    width: 50%;
    max-width: 600px;
    margin-bottom: -5px;
    display: flex;
    align-items: flex-end;
}

.bt_boxImgFianzas img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
}

.bt_boxTxtFianzas {
    width: 45%;
    margin-bottom: 30vh;
    text-align: center;
}

.bt_boxTxtFianzas h1 {
    color: var(--color-azul-dark);
    margin-bottom: 30px;
}

.bt_boxBtnCotizar {
    width: 100%;
}

.bt_boxBtnCotizar a {
    margin: 0 auto;
}

/* =========================================================
   TABS SEGUROS - POSICIONAMIENTO CORREGIDO
   ========================================================= */

.bt_wrapperTabs {
    position: relative;
    width: 100%;
}

.bt_tabsNavContainer {
    display: flex;
    gap: 10px;
    padding-left: 5%;
    position: relative;
    z-index: 10;
    transform: translateY(15px);
}

.bt_tabBtn {
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--color-blanco);
    background: var(--color-azul-dark);
    position: relative;
    display: inline-block;
    border-top-right-radius: var(--border-radius);
    border-top-left-radius: var(--border-radius);
}

.bt_tabBtn[data-tab="personales"].active {
    background-color: var(--color-orange) !important;
    color: var(--color-azul-dark)!important;
}

.bt_tabBtn[data-tab="empresariales"].active {
    background-color: var(--color-orange) !important;
    color: var(--color-azul-dark)!important;
}

.bt_boxTabSeguros {
    background: #F1EAE8;
    background: -webkit-linear-gradient(180deg, rgba(241, 234, 232, 1) 0%, rgba(245, 245, 247, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(241, 234, 232, 1) 0%, rgba(245, 245, 247, 1) 100%);
    background: linear-gradient(180deg, rgba(241, 234, 232, 1) 0%, rgba(245, 245, 247, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#F1EAE8", endColorstr="#F5F5F7", GradientType=0);
    border-top-right-radius: 100px;
    padding: 80px 20px 40px 20px;
    position: relative;
    z-index: 1;
    transform: translateY(-42px);
}

.bt_tabPane {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.bt_tabPane.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.bt_tabTitle {
    color: var(--color-azul-intenso);
    text-align: end;
    font-size: 4.5rem;
}

.bt_boxCards {
    margin-top: 90px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

.bt_cardContainer {
    max-width: 100%;
    width: 300px;
    background: #FFF;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 0px 26px #e0d4d1;
}

.bt_cardContainer-Titulo {
    color: var(--color-azul-intenso);
    font-size: 1.8rem;
    margin-bottom: 15px;
    height: 65px;
}

.bt_cardContainer-Parrafo {
    margin-bottom: 10px;
    height: 260px;
}

.bt_cardContainer-Boton {
    margin: 15px auto 0;
    display: block;
    width: fit-content;
}

.bt_boxTituloDanos {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 30px 0;
}

.bt_boxTituloDanos h2 {
    text-align: left;
}

/* =========================================================
   ANIMACIÓN AVION GSAP
   ========================================================= */

.bt_avionContainer {
    position: absolute;
    right: 45%;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bt_avionSvg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: visible !important;
}

.bt_rastroPath {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.bt_avionIcon {
    width: 80px;
    height: auto;
    position: absolute;
    z-index: 10;
    pointer-events: none;
    will-change: transform;
    transition: none !important;
    visibility: hidden;
    aspect-ratio: auto;
    /* Evita que el navegador fuerce una altura */
    object-fit: contain;
    /* Mantiene la proporción de la imagen */
    image-rendering: -webkit-optimize-contrast;
}

#rastro-path-1-desc,
#rastro-path-2-desc {
    display: block;
}

#rastro-path-1-mob,
#rastro-path-2-mob {
    display: none;
}

/* =========================================================
   MEDIA QUERIE
   ========================================================= */

/* Ajustes para Desktop TABS*/

@media (min-width: 768px) {
    .bt_tabsNavContainer {
        padding-left: 80px;
        transform: translateY(-42px);
        width: 400px;
    }
    .bt_boxTabSeguros {
        border-top-right-radius: 180px;
        padding: 100px 80px 60px 80px;
    }
}

/*********************0 a 767.98*******************/

@media screen and (max-width: 767.98px) {
    .bt_containerHero {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .bt_heroFianzas {
        height: 90vh;
        display: flex;
        flex-direction: column;
        padding: 120px 0 0 !important;
    }
    .bt_boxFianzasContenido {
        border-top-right-radius: 80px;
    }
    .bt_boxHeroFianzas {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
        gap: 0;
    }
    .bt_boxImgFianzas {
        width: 100%;
        max-width: 450px;
        order: 2;
        margin-top: auto;
        margin-bottom: -5px;
        align-self: center;
    }
    .bt_boxImgFianzas img {
        width: 100%;
        height: auto;
        display: block;
    }
    .bt_boxTxtFianzas {
        width: 100%;
        order: 1;
        margin-bottom: 20px;
    }
    .bt_boxTxtFianzas h1 {
        font-size: 4rem;
        margin-bottom: 10px;
    }
    .bt_tabsNavContainer {
        margin-bottom: -25px;
        padding-left: 10px;
        transform: translateY(-43px);
    }
    .bt_boxTabSeguros {
        border-top-right-radius: 80px;
        padding: 80px 18px;
        transform: translateY(-18px);
    }
    .bt_tabTitle {
        font-size: 2.5rem;
    }
    .bt_avionContainer {
        right: 92%;
        width: 127px;
    }
    .bt_avionIcon image {
        width: 45px !important;
        /* Tamaño un poco más pequeño para mobile */
        height: auto !important;
        /* Esto evita el estiramiento */
        position: absolute;
        z-index: 1;
        /* Por debajo de las cards */
        will-change: transform;
    }
    #rastro-path-1-desc,
    #rastro-path-2-desc {
        display: none;
    }
    #rastro-path-1-mob,
    #rastro-path-2-mob {
        display: block;
    }
}

/*********************768 a 991.98*******************/

@media (min-width: 768px) and (max-width: 991.98px) {
    .bt_containerHero {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .bt_heroFianzas {
        height: 90vh;
        display: flex;
        flex-direction: column;
        padding: 120px 0 0 !important;
    }
    .bt_boxFianzasContenido {
        border-top-right-radius: 80px;
    }
    .bt_boxHeroFianzas {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
        gap: 0;
    }
    .bt_boxImgFianzas {
        width: 100%;
        max-width: 450px;
        order: 2;
        margin-top: auto;
        margin-bottom: -5px;
        align-self: center;
    }
    .bt_boxImgFianzas img {
        width: 100%;
        height: auto;
        display: block;
    }
    .bt_boxTxtFianzas {
        width: 100%;
        order: 1;
        margin-bottom: 20px;
    }
    .bt_boxTxtFianzas h1 {
        font-size: 4rem;
        margin-bottom: 10px;
    }
}

/*********************992 a 1199.98*******************/

@media (min-width: 992px) and (max-width: 1199.98px) {}

/*********************1200 a 1399.98*******************/

@media (min-width: 1200px) and (max-width: 1399.98px) {}
