/* =========================================================
   EASYCREDIT - NOSOTROS CSS
========================================================= */

:root{

    --black:#111111;
    --dark:#1A1A1A;

    --green:#1E8E1C;
    --green-light:#39D10A;

    --gray:#E5E5E5;
    --gray-text:#666666;

    --white:#ffffff;
}

/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--white);
    color:var(--black);
    overflow-x:hidden;
    line-height:1.6;
}

/* =========================================================
   CONTAINER
========================================================= */

.container{
    width:90%;
    max-width:1280px;
    margin:auto;
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar{
    height:42px;
    background:var(--black);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 60px;
    color:white;
    font-size:14px;
}

.topbar span{
    display:flex;
    align-items:center;
    gap:8px;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar{
    width:100%;
    height:95px;
    position:sticky;
    top:0;
    z-index:999;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 70px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(0,0,0,.06);
    box-shadow:0 10px 35px rgba(0,0,0,.03);
}

/* =========================================================
   LOGO
========================================================= */

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:68px;
    width:auto;
}

/* =========================================================
   TABLET / LAPTOP PEQUEÑA
========================================================= */

@media(max-width:1100px){

    .navbar{

        padding:0 30px;
    }

    .menu{

        gap:28px;
    }

    .menu a{

        font-size:15px;
    }

    .btn-nav{

        padding:14px 22px;

        font-size:14px;
    }

    .logo img{

        height:58px;
    }

}

/* =========================================================
   TABLET PEQUEÑA
========================================================= */

@media(max-width:900px){

    .navbar{

        padding:0 20px;
    }

    .menu{

        gap:18px;
    }

    .menu a{

        font-size:14px;
    }

    .btn-nav{

        padding:12px 18px;

        font-size:13px;
    }

    .logo img{

        height:52px;
    }

}

/* =========================================================
   MENU
========================================================= */

.menu{
    display:flex;
    align-items:center;
    gap:50px;
}

.menu a{
    position:relative;
    text-decoration:none;
    color:var(--black);
    font-size:17px;
    font-weight:600;
    transition:.3s ease;
}

.menu a::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:-10px;
    width:0%;
    height:3px;
    border-radius:20px;

  background:linear-gradient(
    90deg,
    #1E8E1C,
    #39D10A
);

    transform:translateX(-50%);
    transition:.35s ease;
}

.menu a:hover{
    color:#1E8E1C;
}

.menu a:hover::after{
    width:100%;
}

.menu a.active{
    color:#1E8E1C;
}

.menu a.active::after{
    width:100%;
}

/* =========================================================
   BOTON NAV
========================================================= */

.btn-nav{
    padding:15px 30px;
    border-radius:14px;

    background:linear-gradient(
        135deg,
        var(--green),
        var(--green-light)
    );

    color:white;
    text-decoration:none;
    font-size:15px;
    font-weight:700;

    box-shadow:
    0 12px 30px rgba(30,142,28,.20);

    transition:.35s ease;
}

.btn-nav:hover{
    transform:translateY(-4px);

    box-shadow:
    0 20px 40px rgba(30,142,28,.28);
}

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

.page-hero{

    height:42vh;

    min-height:340px;

    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;

    background:
    linear-gradient(
        rgba(0,0,0,.74),
        rgba(0,0,0,.74)
    ),
    url('../img/nosotros.webp');

    background-size:cover;
    background-position:center;
}

/* =========================================================
   OVERLAY
========================================================= */

.overlay{
    position:absolute;
    inset:0;
}

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

.page-hero-content{
    position:relative;
    z-index:2;
    text-align:center;
    color:white;
    padding:0 20px;
}

.page-hero-content h1{
    font-size:64px;
    margin-bottom:18px;
    font-weight:700;
}

.page-hero-content p{
    font-size:19px;
    opacity:.92;
    max-width:700px;
    margin:auto;
}

/* =========================================================
   CONTENIDO
========================================================= */

.page-content{
    padding:120px 0;
    background:#f5f5f5;
}

.page-box{
    background:white;
    padding:70px;
    border-radius:35px;

    border:1px solid #ececec;

    box-shadow:
    0 20px 50px rgba(0,0,0,.05);
}

.page-box h2{
    font-size:42px;
    margin-bottom:25px;
    color:var(--black);
}

.page-box p{
    font-size:17px;
    line-height:1.9;
    color:var(--gray-text);
}

/* =========================================================
   MISION - VISION - VALORES
========================================================= */

.mvv-section{
    padding:140px 0;
    background:#f5f5f5;
}

/* =========================================================
   TITULO
========================================================= */

.mvv-title{
    text-align:center;
    margin-bottom:90px;
}

.mvv-title span{
    color:var(--green);
    font-size:20px;
    font-weight:700;
    letter-spacing:1px;
}

.mvv-title h2{
    font-size:58px;
    line-height:1.2;
    margin:20px auto;
    max-width:850px;
    color:var(--black);
}

.mvv-title p{
    max-width:760px;
    margin:auto;
    color:var(--gray-text);
    line-height:1.9;
    font-size:18px;
}

/* =========================================================
   GRID
========================================================= */

.mvv-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:40px;
    margin-bottom:100px;
}

/* =========================================================
   CARD
========================================================= */

.mvv-card{
    background:white;

    padding:50px 40px;

    border-radius:35px;

    border:1px solid #ececec;

    box-shadow:
    0 20px 50px rgba(0,0,0,.05);

    transition:.4s ease;

    position:relative;

    overflow:hidden;

    text-align:center;
}

.mvv-card::before{
    content:'';

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:linear-gradient(
        90deg,
        var(--green),
        var(--green-light)
    );
}

.mvv-card:hover{
    transform:translateY(-12px);

    box-shadow:
    0 30px 60px rgba(0,0,0,.08);
}

/* =========================================================
   ICONOS
========================================================= */

.mvv-icon{
    width:90px;
    height:90px;

    border-radius:25px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:0 auto 30px;

    font-size:36px;
    color:white;
}

.mvv-icon.green{

    background:linear-gradient(
        135deg,
        var(--green),
        var(--green-light)
    );
}

.mvv-icon.blue{

    background:linear-gradient(
        135deg,
        #2196F3,
        #64B5F6
    );
}

/* =========================================================
   TEXTOS CARD
========================================================= */

.mvv-card h3{
    font-size:34px;
    margin-bottom:20px;
    color:var(--black);
}

.mvv-card p{
    color:var(--gray-text);
    line-height:2;
    font-size:17px;
}

/* =========================================================
   VALORES
========================================================= */

.valores-box{

    background:white;

    border-radius:40px;

    padding:70px 50px;

    border:1px solid #ececec;

    box-shadow:
    0 25px 60px rgba(0,0,0,.05);
}

/* =========================================================
   HEADER VALORES
========================================================= */

.valores-header{
    text-align:center;
    margin-bottom:60px;
}

.valores-header span{
    color:var(--green);
    font-weight:700;
    font-size:18px;
}

.valores-header h2{
    font-size:52px;
    margin-top:18px;
    color:var(--black);
}

/* =========================================================
   GRID VALORES
========================================================= */

.valores-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

/* =========================================================
   ITEM VALOR
========================================================= */

.valor-item{
    background:#fafafa;

    border-radius:24px;

    padding:30px 20px;

    text-align:center;

    transition:.35s ease;

    border:1px solid #ececec;
}

.valor-item:hover{
    transform:translateY(-8px);

    background:white;

    box-shadow:
    0 20px 40px rgba(0,0,0,.08);
}

/* =========================================================
   ICONO VALOR
========================================================= */

.valor-item i{

    width:70px;
    height:70px;

    border-radius:20px;

    background:linear-gradient(
        135deg,
        var(--green),
        var(--green-light)
    );

    color:white;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:auto auto 20px;

    font-size:28px;
}

/* =========================================================
   TEXTO VALOR
========================================================= */

.valor-item span{
    display:block;
    font-size:18px;
    font-weight:600;
    color:var(--black);
}

/* =========================================================
   FOOTER
========================================================= */

.footer{
    background:var(--black);
    padding:90px 0 35px;
    color:white;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:50px;
}

.footer-brand img{
    height:70px;
    width:auto;
    margin-bottom:20px;
}

.footer-brand p{
    color:rgba(255,255,255,.75);
    line-height:1.8;
}

.footer h3{
    color:var(--green-light);
    margin-bottom:22px;
    font-size:28px;
}

.footer-info a{
    color:rgba(255,255,255,.78);
    text-decoration:none;
    transition:.3s;
}

.footer-info a:hover{
    color:var(--green-light);
}

.footer-info p,
.footer-links a{
    color:rgba(255,255,255,.78);
    text-decoration:none;
    margin-bottom:14px;
    display:block;
    transition:.3s;
}

.footer-links a:hover{
    color:var(--green-light);
    transform:translateX(5px);
}

/* =========================================================
   REDES
========================================================= */

.social-icons{
    display:flex;
    gap:15px;
}

.social-icons a{
    width:45px;
    height:45px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    transition:.3s;
}

.social-icons a:hover{
    background:var(--green);
    transform:translateY(-4px);
}

/* =========================================================
   COPYRIGHT
========================================================= */

.footer-copy{
    margin-top:70px;
    padding-top:25px;
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
    color:rgba(255,255,255,.65);
}

/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp{
    position:fixed;
    width:65px;
    height:65px;
    right:20px;
    bottom:20px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    z-index:999;

    box-shadow:
    0 15px 35px rgba(37,211,102,.25);
}

.whatsapp i{
    color:white;
    font-size:34px;
}

/* =========================================================
   MENU MOBILE
========================================================= */

.menu-toggle{

    display:none;

    position:absolute;

    left:22px;

    font-size:32px;

    color:var(--black);

    cursor:pointer;

    z-index:1001;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:992px){

    .navbar{
        padding:0 25px;
    }

    .menu{
        gap:25px;
    }

    .page-box{
        padding:50px 35px;
    }

    .page-hero-content h1{
        font-size:54px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    .topbar{
        display:none;
    }

    .navbar{

        position:relative;

        justify-content:center;

        align-items:center;

        padding:18px 22px;

        height:auto;
    }

    .logo{
        display:flex;
        justify-content:center;
        width:100%;
    }

    .logo img{
        height:55px;
    }

    .menu-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .menu{

        position:fixed;

        top:0;
        left:-100%;

        width:280px;
        height:100vh;

        background:white;

        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:flex-start;

        padding-left:40px;

        gap:35px;

        transition:.45s ease;

        z-index:1000;

        box-shadow:0 0 40px rgba(0,0,0,.15);
    }

    .menu.active{
        left:0;
    }

    .menu a{
        font-size:24px;
        font-weight:700;
    }

    .btn-nav{
        display:none;
    }

    /* HERO */

    .page-hero{

        height:34vh;

        min-height:280px;
    }

    .page-hero-content h1{
        font-size:42px;
    }

    .page-hero-content p{
        font-size:17px;
        padding:0 20px;
    }

    /* CONTENT */

    .page-box{
        padding:40px 25px;
    }

    .page-box h2{
        font-size:34px;
    }

    /* MVV */

    .mvv-section{
        padding:100px 0;
    }

    .mvv-title h2{
        font-size:40px;
    }

    .mvv-card{
        padding:40px 30px;
    }

    .mvv-card h3{
        font-size:28px;
    }

    .valores-box{
        padding:50px 25px;
    }

    .valores-header h2{
        font-size:38px;
    }

    /* FOOTER */

    .footer{
        text-align:center;
    }

    .social-icons{
        justify-content:center;
    }
}

/* =========================================================
   DROPDOWN + MENU MOBILE CORREGIDO
========================================================= */

/* =========================================================
   HAMBURGUESA
========================================================= */

.menu-toggle{
    display:none !important;
    font-size:32px;
    color:var(--black);
    cursor:pointer;
    z-index:2000;
    position:absolute;
    left:22px;
    top:50%;
    transform:translateY(-50%);
}

/* =========================================================
   DROPDOWN SERVICIOS
========================================================= */

.dropdown{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* BOTON */

.dropdown > a{
    display:flex;
    align-items:center;
    gap:8px;
}

/* ICONO */

.dropdown i{
    font-size:12px;
    transition:.3s ease;
}

/* ROTAR ICONO */

.dropdown:hover i,
.dropdown.active i{
    transform:rotate(180deg);
}

/* =========================================================
   SUBMENU DESKTOP
========================================================= */

.submenu{
    position:absolute;
    top:150%;
    left:50%;
    transform:translateX(-50%);

    min-width:320px;

    background:white;
    border-radius:26px;
    padding:18px;

    display:flex;
    flex-direction:column;
    gap:10px;

    opacity:0;
    visibility:hidden;

    transition:
    opacity .25s ease,
    visibility .25s ease;

    box-shadow:
    0 25px 60px rgba(0,0,0,.12);

    border:1px solid rgba(0,200,83,.10);

    z-index:999;
}

/* MOSTRAR */

.dropdown:hover .submenu{
    opacity:1;
    visibility:visible;
}

/* LINKS SUBMENU */

.submenu a{
    display:flex;
    align-items:center;

    padding:16px 20px;

    border-radius:16px;

    text-decoration:none;

    color:#000000;

    font-size:17px;

    font-weight:600;

    background:#ffffff;

    transition:
    background .25s ease,
    color .25s ease;
}

/* HOVER */

.submenu a:hover{
    background:
    linear-gradient(
    135deg,
    #00C853,
    #00E676
    );

    color:#ffffff;

    transform:none !important;
    box-shadow:none !important;
}

/* QUITAR LINEA */

.submenu a::after{
    display:none !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:768px){

    /* TOPBAR */

    .topbar{
        display:none;
    }

    /* NAVBAR */

    .navbar{
        position:relative;
        justify-content:center;
        align-items:center;
        padding:18px 22px;
        height:auto;
    }

    /* LOGO */

    .logo{
        display:flex;
        justify-content:center;
        width:100%;
    }

    .logo img{
        height:55px;
        width:auto;
    }

    /* HAMBURGUESA */

    .menu-toggle{
        display:flex !important;
        align-items:center;
        justify-content:center;
    }

    /* MENU */

    .menu{
        position:fixed;

        top:0;
        left:-100%;

        width:300px;
        height:100vh;

        background:white;

        display:flex;
        flex-direction:column;
        align-items:flex-start;
        justify-content:flex-start;

        padding:120px 30px 40px;

        gap:8px;

        transition:left .35s ease;

        z-index:1500;

        overflow-y:auto;

        box-shadow:0 0 40px rgba(0,0,0,.15);
    }

    .menu.active{
        left:0;
    }

    /* LINKS */

    .menu > a,
    .dropdown > a{

        width:100%;

        padding:16px 0;

        font-size:22px;
        font-weight:700;

        color:#000000;

        border-bottom:
        1px solid rgba(0,0,0,.06);

        transform:none !important;
        transition:none !important;
    }

    /* ELIMINAR ANIMACIONES */

    .menu a:hover,
    .dropdown > a:hover,
    .submenu a:hover{
        transform:none !important;
        box-shadow:none !important;
    }

    .menu a::after{
        display:none !important;
    }

    /* DROPDOWN */

    .dropdown{
        width:100%;

        display:flex;
        flex-direction:column;
        align-items:flex-start;
    }

    /* SUBMENU MOBILE */

    .submenu{
        position:relative;

        top:0;
        left:0;

        transform:none !important;

        opacity:1;
        visibility:visible;

        display:none;

        width:100%;
        min-width:100%;

        margin-top:10px;

        padding:10px;

        border-radius:18px;

        background:#f8fafc;

        border:1px solid rgba(0,0,0,.05);

        box-shadow:none;
    }

    .dropdown.active .submenu{
        display:flex;
        flex-direction:column;
        gap:6px;
    }

    /* LINKS SUBMENU */

    .submenu a{
        width:100%;

        padding:14px 16px;

        border-radius:14px;

        color:#000000;

        font-size:16px;

        font-weight:600;

        background:white;

        transition:
        background .2s ease,
        color .2s ease;
    }

    .submenu a:hover{
        background:#22C55E;
        color:white;
    }

    /* BOTON NAV */

    .btn-nav{
        display:none;
    }
}

/* =========================================================
   DESKTOP
========================================================= */

@media(min-width:769px){

    .menu-toggle{
        display:none !important;
    }

    .menu{
        position:static;
        width:auto;
        height:auto;
        background:none;
        box-shadow:none;
        padding:0;

        flex-direction:row;
        align-items:center;
        justify-content:center;

        gap:50px;
    }
}