/* =====================================================
   JADEM S.A.
   STYLE.CSS
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');


/* =====================================================
   VARIABLES
===================================================== */

:root {
    --jadem-red: #ef3340;
    --jadem-red-dark: #d92332;

    --jadem-dark: #111318;
    --jadem-dark-soft: #1b1e24;

    --jadem-white: #ffffff;
    --jadem-gray: #aeb3bd;

    --jadem-bg: #f7f8fa;
    --jadem-border: #eceef2;
}


/* =====================================================
   RESET / GENERAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}


/* =====================================================
   HEADER
===================================================== */

.jadem-header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 18px 0;

    border-bottom: 1px solid rgba(255, 255, 255, .15);

    transition:
        padding .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}


/* =====================================================
   LOGO
===================================================== */

.jadem-logo {
    display: flex;
    align-items: baseline;

    gap: 5px;

    text-decoration: none;
}

.logo-main {
    font-size: 31px;

    font-weight: 800;

    letter-spacing: -1px;

    color: #ffffff;
}

.logo-sa {
    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    color: var(--jadem-red);
}


/* =====================================================
   MENÚ
===================================================== */

.navbar-nav {
    gap: 7px;
}

.navbar .nav-link {
    position: relative;

    color: rgba(255, 255, 255, .85);

    font-size: 14px;

    font-weight: 600;

    padding: 10px 12px !important;

    transition: color .3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff;
}

.navbar .nav-link.active::after {
    content: "";

    position: absolute;

    bottom: 2px;
    left: 12px;

    width: 20px;
    height: 2px;

    background: var(--jadem-red);
}


/* =====================================================
   BOTÓN INGRESAR AL SISTEMA
===================================================== */

.btn-sistema {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: var(--jadem-red);

    color: #ffffff;

    border-radius: 6px;

    padding: 12px 19px;

    font-weight: 700;

    font-size: 13px;

    border: 1px solid var(--jadem-red);

    transition: all .3s ease;
}

.btn-sistema i {
    margin-right: 7px;
}

.btn-sistema:hover {
    background: #ffffff;

    color: var(--jadem-dark);

    border-color: #ffffff;

    transform: translateY(-1px);
}


/* =====================================================
   SLIDER PRINCIPAL
===================================================== */

#jademHeroCarousel {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: var(--jadem-dark);
}

.carousel-inner {
    position: relative;
}

.hero-slide {
    position: relative;

    width: 100%;

    min-height: 100vh;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =====================================================
   IMÁGENES DEL SLIDER
===================================================== */

.slide-1 {
    background-image:
        linear-gradient(
            90deg,
            rgba(13, 15, 19, .97) 0%,
            rgba(13, 15, 19, .88) 42%,
            rgba(13, 15, 19, .48) 72%,
            rgba(13, 15, 19, .22) 100%
        ),
        url('../images/slider/slide1.jpg.jpeg');
}

.slide-2 {
    background-image:
        linear-gradient(
            90deg,
            rgba(13, 15, 19, .97) 0%,
            rgba(13, 15, 19, .88) 42%,
            rgba(13, 15, 19, .48) 72%,
            rgba(13, 15, 19, .22) 100%
        ),
        url('../images/slider/slide3.jpg.jpeg');
}

.slide-3 {
    background-image:
        linear-gradient(
            90deg,
            rgba(13, 15, 19, .97) 0%,
            rgba(13, 15, 19, .88) 42%,
            rgba(13, 15, 19, .48) 72%,
            rgba(13, 15, 19, .22) 100%
        ),
        url('../images/slider/slide3.jpg.jpeg');
}


/* =====================================================
   BARRA ROJA LATERAL DEL SLIDER
===================================================== */

.hero-slide::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 7px;
    height: 42%;

    background: var(--jadem-red);

    z-index: 4;
}


/* =====================================================
   CONTENIDO DEL HERO
===================================================== */

.hero-container {
    position: relative;

    z-index: 5;
}

.hero-content {
    padding-top: 70px;
}

.hero-small {
    display: inline-block;

    color: var(--jadem-red);

    font-size: 13px;

    letter-spacing: 3px;

    font-weight: 800;

    margin-bottom: 22px;
}

.hero-content h1 {
    max-width: 850px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(45px, 6vw, 78px);

    font-weight: 800;

    line-height: 1.03;

    letter-spacing: -3px;
}

.hero-content h1 span {
    display: block;

    color: #ffffff;
}

.hero-content p {
    max-width: 670px;

    margin-top: 26px;
    margin-bottom: 0;

    color: rgba(255, 255, 255, .74);

    font-size: 17px;

    line-height: 1.8;
}


/* =====================================================
   BOTONES DEL HERO
===================================================== */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 36px;
}

.btn-jadem-primary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: var(--jadem-red);

    color: #ffffff;

    padding: 15px 25px;

    border-radius: 5px;

    font-weight: 700;

    border: 1px solid var(--jadem-red);

    transition: all .3s ease;
}

.btn-jadem-primary i {
    margin-left: 8px;
}

.btn-jadem-primary:hover {
    background: var(--jadem-red-dark);

    border-color: var(--jadem-red-dark);

    color: #ffffff;

    transform: translateY(-2px);
}

.btn-jadem-outline {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .45);

    color: #ffffff;

    padding: 15px 25px;

    border-radius: 5px;

    font-weight: 700;

    transition: all .3s ease;
}

.btn-jadem-outline:hover {
    background: #ffffff;

    color: var(--jadem-dark);

    border-color: #ffffff;

    transform: translateY(-2px);
}


/* =====================================================
   INDICADORES DEL SLIDER
===================================================== */

.carousel-indicators {
    justify-content: flex-start;

    margin-left: max(
        7%,
        calc((100% - 1320px) / 2 + 12px)
    );

    margin-bottom: 40px;

    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    width: 28px;
    height: 3px;

    border: 0;

    margin-right: 8px;

    background-color: #ffffff;

    opacity: .45;

    transition: all .3s ease;
}

.carousel-indicators .active {
    width: 55px;

    opacity: 1;

    background-color: var(--jadem-red);
}


/* =====================================================
   FLECHAS DEL SLIDER
===================================================== */

.carousel-control-prev,
.carousel-control-next {
    width: 58px;
    height: 58px;

    top: auto;
    bottom: 32px;

    opacity: 1;

    background: rgba(255, 255, 255, .08);

    border: 1px solid rgba(255, 255, 255, .16);

    border-radius: 50%;

    z-index: 10;

    transition: all .3s ease;
}

.carousel-control-prev {
    left: auto;

    right: 105px;
}

.carousel-control-next {
    right: 35px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--jadem-red);

    border-color: var(--jadem-red);
}


/* =====================================================
   TEXTO VERTICAL
===================================================== */

.hero-side-text {
    position: absolute;

    right: 25px;
    top: 50%;

    transform:
        translateY(-50%)
        rotate(90deg);

    transform-origin: center;

    color: rgba(255, 255, 255, .35);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 5px;

    white-space: nowrap;

    z-index: 8;
}


/* =====================================================
   SERVICIOS
===================================================== */

.services-section {
    padding: 110px 0;

    background: #ffffff;

    scroll-margin-top: 90px;
}


/* =====================================================
   ENCABEZADO SERVICIOS
===================================================== */

.services-heading {
    margin-bottom: 25px;
}

.section-small {
    display: inline-block;

    color: var(--jadem-red);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 16px;
}

.services-heading h2 {
    margin: 0;

    color: var(--jadem-dark);

    font-size: clamp(38px, 5vw, 58px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -2px;
}

.services-heading h2 span {
    display: block;

    color: var(--jadem-red);
}

.services-heading p {
    max-width: 500px;

    margin-left: auto;
    margin-bottom: 5px;

    color: #737985;

    font-size: 16px;

    line-height: 1.8;
}


/* =====================================================
   TARJETAS DE SERVICIOS
===================================================== */

.service-card {
    position: relative;

    height: 100%;

    min-height: 390px;

    padding: 42px 34px;

    background: #f7f8fa;

    border: 1px solid #eceef2;

    border-radius: 8px;

    overflow: hidden;

    transition: all .35s ease;
}


/* NÚMERO */

.service-number {
    position: absolute;

    top: 18px;
    right: 24px;

    font-size: 72px;

    font-weight: 800;

    line-height: 1;

    color: rgba(17, 19, 24, .045);

    transition: color .35s ease;
}


/* ICONO */

.service-icon {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 8px;

    margin-bottom: 30px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .06);

    transition: all .35s ease;
}

.service-icon i {
    color: var(--jadem-red);

    font-size: 29px;

    transition: color .35s ease;
}


/* TEXTO */

.service-card h3 {
    margin-bottom: 17px;

    color: var(--jadem-dark);

    font-size: 26px;

    font-weight: 800;
}

.service-card p {
    color: #737985;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 65px;
}


/* ENLACE */

.service-link {
    position: absolute;

    left: 34px;
    bottom: 35px;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--jadem-dark);

    font-size: 14px;

    font-weight: 800;

    transition: color .3s ease;
}

.service-link i {
    color: var(--jadem-red);

    transition: transform .3s ease;
}

.service-link:hover {
    color: var(--jadem-red);
}

.service-link:hover i {
    transform: translateX(5px);
}


/* =====================================================
   HOVER SERVICIOS
===================================================== */

.service-card::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: var(--jadem-red);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .35s ease;
}

.service-card:hover {
    transform: translateY(-9px);

    background: #ffffff;

    border-color: transparent;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .10);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover .service-icon {
    background: var(--jadem-red);
}

.service-card:hover .service-icon i {
    color: #ffffff;
}

.service-card:hover .service-number {
    color: rgba(239, 51, 64, .08);
}


/* =====================================================
   QUIÉNES SOMOS
===================================================== */

.about-section {
    padding: 110px 0;

    background: #f7f8fa;

    scroll-margin-top: 90px;
}


/* =====================================================
   IMAGEN QUIÉNES SOMOS
===================================================== */

.about-image-wrapper {
    position: relative;

    padding-right: 40px;
    padding-bottom: 40px;
}

.about-image-wrapper::before {
    content: "";

    position: absolute;

    left: -18px;
    bottom: 10px;

    width: 170px;
    height: 230px;

    background: var(--jadem-red);

    border-radius: 8px;

    z-index: 0;
}

.about-image {
    position: relative;

    z-index: 1;

    display: block;

    width: 100%;
    height: 600px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .12);
}


/* =====================================================
   TARJETA SOBRE FOTO
===================================================== */

.about-experience {
    position: absolute;

    right: 0;
    bottom: 0;

    z-index: 3;

    width: 245px;

    padding: 25px 28px;

    background: var(--jadem-dark);

    color: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .20);
}

.about-experience-number {
    display: block;

    color: var(--jadem-red);

    font-size: 31px;

    font-weight: 800;

    letter-spacing: -1px;

    margin-bottom: 5px;
}

.about-experience-text {
    display: block;

    color: rgba(255, 255, 255, .75);

    font-size: 13px;

    line-height: 1.5;
}


/* =====================================================
   CONTENIDO QUIÉNES SOMOS
===================================================== */

.about-content {
    padding-left: 20px;
}

.about-content h2 {
    margin-bottom: 27px;

    color: var(--jadem-dark);

    font-size: clamp(38px, 5vw, 57px);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -2px;
}

.about-content h2 span {
    display: block;

    color: var(--jadem-red);
}

.about-lead {
    color: #343943 !important;

    font-size: 18px !important;

    font-weight: 600;

    line-height: 1.8 !important;
}

.about-content > p {
    margin-bottom: 20px;

    color: #747a84;

    font-size: 15px;

    line-height: 1.85;
}


/* =====================================================
   BENEFICIOS QUIÉNES SOMOS
===================================================== */

.about-features {
    margin-top: 32px;
    margin-bottom: 35px;
}

.about-feature {
    display: flex;

    gap: 18px;

    margin-bottom: 23px;
}

.about-feature-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(239, 51, 64, .09);

    border-radius: 7px;
}

.about-feature-icon i {
    color: var(--jadem-red);

    font-size: 23px;
}

.about-feature h4 {
    margin: 0 0 6px 0;

    color: var(--jadem-dark);

    font-size: 17px;

    font-weight: 800;
}

.about-feature p {
    margin: 0;

    color: #7a808a;

    font-size: 14px;

    line-height: 1.6;
}


/* =====================================================
   BOTÓN QUIÉNES SOMOS
===================================================== */

.btn-about {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: var(--jadem-dark);

    color: #ffffff;

    padding: 15px 23px;

    border-radius: 5px;

    font-size: 14px;

    font-weight: 700;

    border: 1px solid var(--jadem-dark);

    transition: all .3s ease;
}

.btn-about i {
    margin-left: 8px;
}

.btn-about:hover {
    background: var(--jadem-red);

    border-color: var(--jadem-red);

    color: #ffffff;

    transform: translateY(-2px);
}


/* =====================================================
   ANCLAS / SCROLL
===================================================== */

#inicio,
#servicios,
#nosotros,
#prestamos,
#ahorros,
#inversiones {
    scroll-margin-top: 90px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1199px) {

    .navbar-nav {
        gap: 2px;
    }

    .navbar .nav-link {
        font-size: 13px;

        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .btn-sistema {
        padding: 11px 14px;

        font-size: 12px;
    }

}


/* =====================================================
   RESPONSIVE <= 991px
===================================================== */

@media (max-width: 991px) {

    /* HEADER */

    .jadem-header {
        padding: 10px 0;
    }

    .navbar-collapse {
        margin-top: 15px;

        padding: 20px;

        background: rgba(15, 17, 21, .98);

        border-radius: 10px;

        box-shadow:
            0 20px 50px rgba(0, 0, 0, .20);
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar .nav-link {
        padding: 10px 5px !important;
    }

    .navbar .nav-link.active::after {
        left: 5px;
    }


    /* HERO */

    .hero-slide {
        background-position: center;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 90px;
    }

    .hero-content h1 {
        letter-spacing: -2px;
    }

    .hero-side-text {
        display: none;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .carousel-indicators {
        margin-left: 7%;
    }


    /* SERVICIOS */

    .services-section {
        padding: 80px 0;
    }

    .services-heading p {
        margin-left: 0;

        margin-top: 25px;
    }


    /* NOSOTROS */

    .about-section {
        padding: 80px 0;
    }

    .about-content {
        padding-left: 0;
    }

    .about-image {
        height: 520px;
    }

}


/* =====================================================
   RESPONSIVE <= 767px
===================================================== */

@media (max-width: 767px) {

    .logo-main {
        font-size: 27px;
    }

    .hero-content h1 {
        font-size: 50px;

        letter-spacing: -2px;
    }

    .about-image {
        height: 470px;
    }

}


/* =====================================================
   MÓVIL <= 576px
===================================================== */

@media (max-width: 576px) {

    /* HEADER */

    .jadem-header {
        padding: 9px 0;
    }

    .logo-main {
        font-size: 25px;
    }

    .logo-sa {
        font-size: 11px;
    }


    /* HERO */

    .hero-slide {
        min-height: 100vh;

        background-position: center;
    }

    .hero-content {
        padding-top: 125px;

        padding-bottom: 100px;
    }

    .hero-small {
        font-size: 11px;

        letter-spacing: 2px;

        margin-bottom: 16px;
    }

    .hero-content h1 {
        font-size: 41px;

        line-height: 1.07;

        letter-spacing: -1.5px;
    }

    .hero-content p {
        margin-top: 20px;

        font-size: 15px;

        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;

        gap: 10px;

        margin-top: 28px;
    }

    .hero-buttons .btn {
        width: 100%;

        padding: 14px 20px;
    }

    .carousel-indicators {
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 20px;
    }


    /* SERVICIOS */

    .services-section {
        padding: 65px 0;
    }

    .services-heading h2 {
        font-size: 38px;

        letter-spacing: -1px;
    }

    .services-heading p {
        font-size: 15px;
    }

    .service-card {
        min-height: 360px;

        padding: 35px 27px;
    }

    .service-link {
        left: 27px;
    }

    .service-number {
        font-size: 60px;
    }


    /* NOSOTROS */

    .about-section {
        padding: 65px 0;
    }

    .about-image-wrapper {
        padding-right: 15px;

        padding-bottom: 70px;
    }

    .about-image {
        height: 420px;
    }

    .about-image-wrapper::before {
        left: -8px;

        width: 120px;
        height: 160px;
    }

    .about-experience {
        width: 220px;

        right: 0;
        bottom: 15px;
    }

    .about-content h2 {
        font-size: 38px;

        letter-spacing: -1px;
    }

    .about-lead {
        font-size: 16px !important;
    }

}


/* =====================================================
   MÓVIL PEQUEÑO <= 390px
===================================================== */

@media (max-width: 390px) {

    .hero-content h1 {
        font-size: 36px;
    }

    .service-card {
        padding-left: 24px;
        padding-right: 24px;
    }

    .service-link {
        left: 24px;
    }

    .about-image {
        height: 370px;
    }

    .about-experience {
        width: 205px;

        padding: 20px;
    }

}