: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{
    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,.95);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(0,0,0,.05);
}

.logo img{
    height:68px;
}

/* =========================================================
   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:45px;
}

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

.menu a:hover{
    color:var(--green);
}

.menu a::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:-10px;
    width:0%;
    height:3px;
    background:linear-gradient(
    90deg,
    var(--green),
    var(--green-light)
    );
    border-radius:20px;
    transform:translateX(-50%);
    transition:.35s;
}

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

.menu a.active{
    color:var(--green);
}

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

.dropdown{
    position:relative;
}

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

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

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

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

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

    min-width:300px;

    background:white;

    border-radius:24px;

    padding:16px;

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

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

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

    z-index:999;
}

.dropdown:hover .submenu{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}

.submenu a{
    padding:15px 18px;
    border-radius:16px;
    color:#000;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}

.submenu a:hover{
    background:linear-gradient(
    135deg,
    var(--green),
    var(--green-light)
    );

    color:white;
}

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

/* =========================================================
   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-weight:700;

    transition:.35s;
}

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

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

.services-hero{
    width:100%;
    height:45vh;
    min-height:360px;

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

    background:
    linear-gradient(
    rgba(0,0,0,.75),
    rgba(0,0,0,.70)
    ),
    url('../img/asesoria.webp');

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

.services-hero-content{
    color:white;
    max-width:850px;
    padding:0 20px;
}

.services-hero-content span{
    color:var(--green-light);
    font-weight:700;
    font-size:18px;
}

.services-hero-content h1{
    font-size:68px;
    margin:20px 0;
    line-height:1.1;
}

.services-hero-content p{
    font-size:19px;
    opacity:.9;
}

/* =========================================================
   SERVICE SECTION
========================================================= */

.service-detail{
    padding:120px 0;
    background:#f7f7f7;
}

.service-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:start;
}

/* =========================================================
   INFO
========================================================= */

.mini-service{
    color:var(--green);
    font-weight:700;
    font-size:18px;
}

.service-info h2{
    font-size:54px;
    line-height:1.2;
    margin:20px 0;
}

.service-info p{
    color:var(--gray-text);
    margin-bottom:25px;
    font-size:17px;
    line-height:1.9;
}

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

.service-card{
    background:white;
    padding:45px;
    border-radius:30px;

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

.service-card h3{

    font-size:34px;

    margin-bottom:35px;

    text-align:center;

    color:var(--black);
}

/* =========================================================
   ITEMS
========================================================= */

.service-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.service-item{
    display:flex;
    align-items:flex-start;
    gap:18px;

    padding:18px;

    border-radius:18px;

    background:#f8f8f8;

    transition:.3s;
}

.service-item:hover{
    transform:translateX(5px);
    background:#f1fff1;
}

.service-item i{
    width:52px;
    height:52px;

    min-width:52px;

    border-radius:14px;

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

    color:white;

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

    font-size:20px;
}

.service-item span{
    font-weight:600;
    color:#333;
}

/* =========================================================
   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;
    margin-bottom:20px;
}

.footer h3{
    color:var(--green-light);
    margin-bottom:20px;
}

.footer p,
.footer a{
    color:rgba(255,255,255,.75);
    text-decoration:none;
}

.footer-links a{
    display:block;
    margin-bottom:12px;
}

.footer-links a:hover{
     color:#0b7a34;
}

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

.social-icons a{
    width:45px;
    height:45px;
    border-radius:50%;
    background:rgba(255,255,255,.08);

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

.social-icons a:hover{
    background:var(--green);
}

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

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

.whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:#25D366;

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

    text-decoration:none;

    z-index:999;
}

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

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

.menu-toggle{
    display:none;
}

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

@media(max-width:992px){

    .service-grid{
        grid-template-columns:1fr;
    }

    .service-info h2{
        font-size:42px;
    }
}

@media(max-width:768px){

    .topbar{
        display:none;
    }

    .navbar{
        padding:18px 20px;
        height:auto;
    }

    .menu-toggle{
        display:block;
        font-size:30px;
        cursor:pointer;
    }

    .logo img{
        height:55px;
    }

    .menu{
        position:fixed;
        top:0;
        left:-100%;

        width:280px;
        height:100vh;

        background:white;

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

        padding-left:40px;

        transition:.4s;

        z-index:1000;
    }

    .menu.active{
        left:0;
    }

    .submenu{
        display:none;
    }

    .btn-nav{
        display:none;
    }

    .services-hero h1{
        font-size:46px;
    }

    .service-card{
        padding:30px 20px;
    }

    .footer{
        text-align:center;
    }

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

/* =========================================================
   SERVICE GRID FIX
========================================================= */

.service-grid{

    display:grid;

    grid-template-columns:
    1fr 1fr;

    gap:60px;

    align-items:start;
}

/* =========================================================
   INFO
========================================================= */

.service-info{

    display:flex;

    flex-direction:column;

    justify-content:center;

    height:100%;
}

/* =========================================================
   BOTON ASESORIA
========================================================= */

.service-btn{

    margin-top:35px;

    width:fit-content;

    display:inline-flex;

    align-items:center;

    gap:12px;

    padding:18px 30px;

    border-radius:18px;

    text-decoration:none;

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

    color:white;

    font-weight:700;

    font-size:16px;

    transition:.35s ease;

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

.service-btn:hover{

    transform:translateY(-5px);

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

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

.service-card{

    height:100%;
}

/* =========================================================
   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;
    }
}