:root{
    --color-base-100: #003E89;
    --color-base-200: #1964BE;
    --color-base-300: #009AD9;
    --color-secondary:#FFC300;
    --font-color: #00000083;
}

::selection {
    color: var(--color-base-100);
    background: var(--font-color);
}

@font-face {
    font-family: myFont;
    src: url('./fonts/headers.ttf');
}

main {
    overflow: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--font-color);
}

p {
    font-size: 16px;
    line-height: 26px;
}

h1,h2,h3,h4,h5,h6 {
    font-family: myFont, sans-serif;
}

h1 {
    font-size: 3.813rem;
}

h2 {
    font-size: 3.063rem;
}

h3 {
    font-size: 39px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 0;
    border-bottom-left-radius: 68px;
    border-bottom-right-radius: 68px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    z-index: 99;
    background: white;
}

nav a {
    color: var(--color-base-100);
    text-decoration: none;
}

nav a:hover{
    text-decoration: underline;
}

nav .logo{
    width: 240px;
}

.mobile-nav {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.mobile-nav.active{
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 98;
    transition: height 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding-left:40px ;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--font-color);
}

.mobile-nav a:hover{
    text-decoration: underline;
}

/*Home page styles*/
.hero {
    padding-top: 30vh;
    color: white;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-base-200);
    opacity: 0.5;
    z-index: 1;
}

.hero .bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 405px;
    background: linear-gradient(0deg, #F3F5F9 0%, rgba(243, 245, 249, 0) 100%);
    z-index: 1;
}

.hero .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 115vh;
    object-fit: cover;
    z-index: 0;
}

.images-top {
    margin-top: -50vh;
    position: relative;
}

.images-top .row.images-h {
    align-items: baseline;
    position: relative;
    z-index: 4;
}

.images-top .images-h .col-md-4{
    height: 476px;
}

.images-top .images-h .col-md-4:nth-last-child(1) {
    height: 680px;
}

.images-top .img-card {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background-color: white;
    overflow: hidden;
    position: relative;
}

.images-top .img-card .card-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.images-top .img-card h6 {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px #00000055;
}

.images-top .img-card.w-header .card-body-img {
    height: 92%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    object-fit: cover;
    border-radius: 10px;
}

.images-top .img-card.w-header h6 {
    text-shadow: none;
    top: 12px;
    color: var(--color-base-100);
}

.images-top .img-card .btn {
    bottom: 32px;
    left: 32px;
    right: 32px;
    z-index: 2;
}

.svg-icon {
    height: 80px !important;
    aspect-ratio: 1;
}


@media screen and (max-width: 767px) {
    .hero {
        height: 120vh;
    }

    h1 {
        font-size: 3.413rem;
    }

    .images-top {
        margin-top: -40vh;
    }

    .images-top .row.images-h {
        margin-top: 70px;;
    }

    .images-top .images-h .col-md-4{
        margin-bottom: 20px;
    }

    .svg-icon {
        height: 60px !important;
        aspect-ratio: 1.2;
    }
}


.clients-img{
    margin: 140px 0;
}

.clients-img img {
    max-width: 120px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    mix-blend-mode: luminosity;
}

.marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    align-items: center;
    animation: scroll linear infinite;
}

.marquee img {
    height: auto;
    width: 120px;
    /* o el tamaño que desees */
    margin-right: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    mix-blend-mode: luminosity;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.card-section-4 {
    position: relative;
    padding: 14vh 0;
    margin: 80px 0;
}

.card-section-4 .sub-card{
    position: absolute;
    height: 120px;
    aspect-ratio: 1 / 1;
    background: var(--color-base-200);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -50px;
    right: -40px;
}

.card-section-4 .sub-card svg {
    width: 62px;
    aspect-ratio: 1;
}

@media screen and (max-width: 767px) {
    .card-section-4 .container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .card-section-4 .sub-card {
        right: inherit;
        left: -30px;
    }

    .card-section-4 .sub-card svg {
        width: 54px;
    }
}

.card-section-4 .container {
    position: relative;
    z-index: 2;
}

.card-section-4 .img-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
}

.card-section-4 .card {
    padding-top: 88px;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
}

@media screen and (max-width: 767px) {
    .card-section-4 {
        padding-top: 50vh;
    }
}

/*Other pages styles*/
.section {
    margin: 80px 0;
}
.page-head{
    padding-top: 30vh;
    padding-bottom: 20vh;
    background: linear-gradient(0deg, #F3F5F9 0%, #003E89 100%);
    color: white;
    position: relative;
    margin-bottom: 100px;
}

.page-head .container.margin-off{
    margin-bottom: -100px;
}

.page-head .container {
    position: relative;
    z-index: 4;
}

.page-head .overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-base-200);
    opacity: 0.5;
    z-index: 1;
}

.page-head .bottom-overlay {
    height: 40%;
}

.page-head .img-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
}

.page-head .card-row{
    margin-bottom: -130px;
}

.page-head .card {
    padding: 40px 32px;
}

/*Offset section*/
.s-off .row{
    margin-left: -200px;
}

@media screen and (max-width: 767px) {
    .s-off .row {
        margin-left: inherit;
    }
}

.s-off .floating-card {
    position: absolute;
    bottom: -10%;
    right: -20%;
    background-color: var(--color-base-200);
    color: white;
    padding: 32px;
    z-index: 3;
    aspect-ratio: 1;
    border-radius: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

/*Swiper*/
.swiper-section{
    margin-top: -30px;
    margin-bottom: 100px;
}

.mySwiper {
    overflow: visible;
}

.buttons-swiper{
    position: relative;
    width: fit-content;
    display: flex;
    gap: 12px;
    top: 0;
    margin-bottom: 60px;
    align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
    position: static;
    margin-top: auto;
    width: 40px;
    aspect-ratio: 1;
    height: inherit;
}

.swiper-button-next:after,
.swiper-button-prev:after{
    font-size: 16px;
    color: #00000080;
    font-weight: bold;
}

.buttons-swiper .swiper-button-next, .buttons-swiper .swiper-button-prev {
    border-radius: 100px;
    border: 3px solid #00000080;
}

.card-img-sw {
    height: 480px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.card-img-sw img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.swiper-slide {
    transition: width 0.5s ease;
}

.swiper-slide-active {
    width: 560px !important;
    transition: width 0.5s ease;
}

@media screen and (max-width: 767px) {
    .swiper-section {
        margin-top: 40px;
    }

    .swiper-slide-active {
        width: 430px !important;
    }
}

/*Collapse sections*/
.btn-accordion {
    border: 3px solid var(--font-color);
    border-radius: 100px;
    padding: 12px;
    background-color: white;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-accordion svg {
    width: 13px;
    height: 13px;
    fill: var(--font-color);
    rotate: 180deg;
    transition: all 0.3s ease;
}


.accordion-button {
    color: var(--font-color);
}

.accordion-button:not(.collapsed){
    background: none !important;
    box-shadow: none !important;
    color: var(--font-color);
}

.accordion-button::after {
    content: none;
}

.accordion-button:not(.collapsed) .btn-accordion {
    background-color: var(--color-base-100);
    border-color: var(--color-base-100);
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) .btn-accordion svg{
    fill: white;
    rotate: 0deg;
    transition: all 0.3s ease;
}

.accordion-collapse img, .accordion-collapse video {
    border-radius: 10px;
    margin: 20px 0;
    height: 600px;
    width: 100%;
    object-fit: cover;
}

/*us Cards*/
.card-img{
    height: 560px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.card-img .content{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.411);
    color: white;
    padding: 20px;
    z-index: 2;
    height: 100%;
}

.card-img.bottom .content {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

@media screen and (max-width: 767px) {
    #card-num-section .row.my-4{
        gap: 32px;
    }
}


/*CTA FOOTER*/
.cta-footer{
    position: relative;
    margin-bottom: 80px;
}

.cta-footer .bg-cta-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cta-footer .col-md-6:nth-last-child(2){
    background-color: #003E8980;
    height: 100%;
    padding: 10vh 100px;
    color: white;
    backdrop-filter: blur(10px);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

@media screen and (max-width: 767px) {
    .cta-footer .col-md-6:nth-last-child(2) {
        border-radius: 0;
        padding: 40px 20px;
    }
}

/*Footer*/
footer a {
    color: var(--font-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/*Site styles*/
.btn {
    border-radius: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    font-family: myFont, sans-serif;
    padding-right: 5px;
}

.btn .arrow {
    border-radius: 100px;
    width: fit-content;
    height: 35px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background-color: var(--color-base-100);
    border: none;
    color: white;
}

.btn-primary .arrow {
    background-color: white;
}

.btn-primary svg path {
    fill: var(--color-base-100);
}

.btn-primary:hover {
    background-color: var(--color-base-200);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--color-base-100);
    border: none;
}

.btn-secondary .arrow {
    background-color: var(--color-base-100);
}

.btn-secondary svg path {
    fill: white;
}

.btn-secondary:hover {
    background-color: var(--color-base-300);
    color: white;
}

.badge {
    background-color: #FFFFFFCC;
    border-color: #FFFFFF80;
    backdrop-filter: blur(21.1px);
    border-radius: 200px;
    color: var(--color-base-100);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.card {
    background-color: var(--color-base-100);
    color: white;
    border-radius: 20px;
    border-color: none;
}

.card.white{
    background-color: white;
    color: var(--color-base-100);
    border-color: none;
}

.ellipse{
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 405px;
    background: linear-gradient(0deg, #ffffff 0%, rgba(243, 245, 249, 0) 100%);
}

/* ==========================================
   PAGE LOADER - Overlay blanco inicial con logo
   ========================================== */
#page-loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.6s ease-out;
    pointer-events: all;
}

#page-loader.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
}

.loader-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    position: relative;
    z-index: 1000000;
}

.loader-logo {
    height: 80px !important;
    width: auto !important;
    opacity: 1 !important;
    transition: all 0.5s ease-out !important;
    display: block !important;
}

#page-loader.fade-out .loader-logo {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
}

.loader-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 3px solid #f3f3f3 !important;
    border-top: 3px solid #003E89 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    transition: opacity 0.5s ease-out !important;
}

#page-loader.fade-out .loader-spinner {
    opacity: 0 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
