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

body{
    font-family:'Inter',sans-serif;
    color:#1E1E1E;
}

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

.header{
    position:fixed;
    width:100%;
    background:white;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
    z-index:999;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo img{
    height:50px;
}

nav ul{
    display:flex;
    gap:30px;
    list-style:none;
}

nav a{
    text-decoration:none;
    color:#111;
    font-weight:500;
}

.hero{
    height:100vh;
    background:
    url('img/hero.jpg')
    center center / cover no-repeat;
}

/* MÓVIL */

@media(max-width:768px){

    .hero{
        background:
        url('img/hero-mobile.jpg')
        center center / cover no-repeat;
    }

}
.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.5);
}

.hero-content{
    position:relative;
    color:white;
    z-index:2;
}

.hero h1{
    font-size:4rem;
    max-width:700px;
}

.hero p{
    max-width:650px;
    margin:20px 0;
}

.btn{
    display:inline-block;
    padding:14px 30px;
    border-radius:40px;
    text-decoration:none;
}

.btn-primary{
    background:#0F2744;
    color:white;
}

.btn-secondary{
    border:1px solid white;
    color:white;
}

.section{
    padding:100px 0;
}

.gray{
    background:#F5F5F5;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.projects-grid,
.benefits-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.project-card,
.benefit-card,
.about-card,
.contact-card{
    background:white;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.project-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.project-content{
    padding:25px;
}

.project-btn{
    display:inline-block;
    margin-top:15px;
    color:#0F2744;
    font-weight:bold;
}

.about-card,
.contact-card,
.benefit-card{
    padding:40px;
}

@media(max-width:768px){

    nav ul{
        gap:15px;
        font-size:14px;
    }

    .hero h1{
        font-size:2.3rem;
    }

}

/* ===== WHATSAPP FLOAT PREMIUM ===== */

.wa-container{
    position:fixed !important;
    bottom:20px !important;
    right:20px !important;
    z-index:999999 !important;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
}

/* BOT脫N */

.wa-button{
    width:68px;
    height:68px;
    border:none;
    border-radius:999px;
    background:#25D366;
    cursor:pointer;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 12px 35px rgba(37,211,102,.35);
    transition:.3s;
}

.wa-button:hover{
    transform:translateY(-4px);
}

.wa-button svg{
    width:34px;
    height:34px;
    fill:#fff;
}

/* POPUP */

.wa-popup{
    width:320px;
    background:#fff;
    border-radius:28px;
    padding:20px;
    margin-bottom:15px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
    display:none;
    animation:fadeWhatsapp .3s ease;
}

.wa-popup.active{
    display:block;
}

.wa-popup small{
    color:#25D366;
    font-weight:700;
}

.wa-popup h4{
    margin:12px 0 20px;
    font-size:22px;
    color:#1d1d1f;
}

.wa-popup a{
    display:block;
    background:#f5f5f7;
    color:#1d1d1f;
    text-decoration:none;
    padding:16px;
    border-radius:18px;
    margin-bottom:10px;
    transition:.25s;
    font-weight:500;
}

.wa-popup a:hover{
    background:#ececf0;
}

/* animaci贸n */

@keyframes fadeWhatsapp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===== M脫VIL ===== */

@media(max-width:768px){

    .wa-container{
        right:15px !important;
        bottom:15px !important;
    }

    .wa-popup{
        width:280px;
        max-width:calc(100vw - 30px);
    }

    .wa-button{
        width:62px;
        height:62px;
    }

    .wa-button svg{
        width:30px;
        height:30px;
    }


    
}

/* HEADER */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:99999;
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(0,0,0,.05);
}

.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:110px;
}

/* LOGO GRANDE */

.logo img{
    height:120px !important;
    width:auto;
    display:block;
}

/* MENU DESKTOP */

nav ul{
    display:flex;
    list-style:none;
    gap:35px;
}

nav ul li a{
    text-decoration:none;
    color:#111;
    font-weight:500;
}

/* BOTON HAMBURGUESA */

.menu-toggle{
    display:none;
    border:none;
    background:none;
    font-size:34px;
    cursor:pointer;
}

/* FOOTER */

.footer{
    background:#111;
    color:white;
    padding:50px 20px;
}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
}

.partner-link{
    color:white;
    text-decoration:none;
    padding:15px 22px;
    border-radius:50px;
    background:rgba(255,255,255,.1);
}

/* MOBILE */

@media(max-width:768px){

    .nav{
        min-height:90px;
    }

    .logo img{
        height:95px !important;
    }

    .menu-toggle{
        display:block;
        z-index:999999;
    }

    nav{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:white;
        padding:25px;
        box-shadow:0 10px 30px rgba(0,0,0,.08);
    }

    nav.active{
        display:block;
    }

    nav ul{
        flex-direction:column;
        text-align:center;
        gap:25px;
    }

    nav ul li a{
        font-size:20px;
    }

    .footer-content{
        flex-direction:column;
        text-align:center;
    }
}
/* HEADER DINÁMICO AL HACER SCROLL */

.header.scrolled{
    background:rgba(255,255,255,.96);
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.header.scrolled .logo img{
    height:70px;
}

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

.footer{
    background:#111;
    color:white;
    padding:35px 0;
}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.partner-link{
    color:white;
    text-decoration:none;
    background:rgba(255,255,255,.1);
    padding:14px 22px;
    border-radius:999px;
    transition:.3s;
}

.partner-link:hover{
    background:rgba(255,255,255,.18);
}

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

@media(max-width:768px){

    .menu-toggle{
        display:block;
    }

    nav{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:white;
        display:none;
        box-shadow:0 10px 30px rgba(0,0,0,.08);
        padding:25px;
    }

    nav.active{
        display:block;
    }

    nav ul{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

    .logo img{
        height:80px;
    }

    .footer-content{
        flex-direction:column;
        text-align:center;
    }
}