/* =========================================================
   AMBIENTE OK - styles.css
   VERSION FINAL
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root{

    --primary:#0A4DA2;
    --primary-dark:#07356f;
    --secondary:#25A8E0;
    --accent:#ff6b2d;

    --white:#ffffff;
    --light:#f5f8fc;
    --gray:#6b7280;
    --dark:#111827;

    --shadow:0 10px 30px rgba(0,0,0,0.08);

    --radius:18px;

    --container:1200px;

    --transition:0.3s ease;

}


/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:var(--white);

    color:var(--dark);

    line-height:1.6;

    overflow-x:hidden;

}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}


/* =========================================================
   CONTAINER
========================================================= */

.container{

    width:90%;
    max-width:var(--container);

    margin:auto;

}


/* =========================================================
   HEADER
========================================================= */

#site-header{

    position:sticky;

    top:0;

    width:100%;

    background:rgba(255,255,255,0.96);

    backdrop-filter:blur(10px);

    z-index:9999;

    box-shadow:0 2px 10px rgba(0,0,0,0.04);

    transition:
        transform 0.35s ease,
        box-shadow 0.3s ease;

    will-change:transform;

}


/* HEADER HIDE */

#site-header.hide-header{
    transform:translateY(-120%) !important;
}


.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}

.logo img{
    height:60px;
}


/* =========================================================
   MENU
========================================================= */

.nav-menu{

    display:flex;

    gap:30px;

    align-items:center;

}

.nav-menu a{

    font-size:15px;

    font-weight:600;

    transition:var(--transition);

    color:var(--dark);

}

.nav-menu a:hover{
    color:var(--primary);
}


/* =========================================================
   BOTON NAV
========================================================= */

.nav-btn{

    background:var(--primary);

    color:#ffffff !important;

    padding:12px 22px;

    border-radius:50px;

    transition:var(--transition);

    font-weight:700;

}

.nav-btn:hover{

    background:var(--primary-dark);

    color:#ffffff !important;

}


/* =========================================================
   HERO
========================================================= */

.hero{

    min-height:90vh;

    display:flex;

    align-items:center;

    background:
        linear-gradient(
            rgba(10,77,162,0.75),
            rgba(10,77,162,0.75)
        ),
        url('../images/hero.webp') center/cover;

    color:var(--white);

    padding:80px 0;

}

.hero-content{
    max-width:700px;
}

.hero h1{

    font-size:56px;

    line-height:1.1;

    margin-bottom:25px;

}

.hero p{

    font-size:20px;

    margin-bottom:35px;

    color:rgba(255,255,255,0.92);

}

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}


/* =========================================================
   BOTONES
========================================================= */

.btn{

    display:inline-block;

    padding:16px 28px;

    border-radius:50px;

    font-weight:700;

    transition:var(--transition);

}

.btn-primary{

    background:var(--white);

    color:var(--primary);

}

.btn-primary:hover{

    transform:translateY(-3px);

    box-shadow:var(--shadow);

}

.btn-secondary{

    border:2px solid var(--white);

    color:var(--white);

}

.btn-secondary:hover{

    background:var(--white);

    color:var(--primary);

}


/* =========================================================
   SECCIONES
========================================================= */

section{
    padding:90px 0;
}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-size:42px;

    margin-bottom:15px;

    color:var(--dark);

}

.section-title p{

    max-width:700px;

    margin:auto;

    color:var(--gray);

}


/* =========================================================
   SERVICES
========================================================= */

.services-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.service-card{

    background:var(--white);

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.service-card:hover{
    transform:translateY(-8px);
}

.service-card img{

    width:100%;
    height:220px;

    object-fit:cover;

}

.service-content{
    padding:28px;
}

.service-content h3{

    margin-bottom:15px;

    font-size:24px;

}

.service-content p{

    color:var(--gray);

    margin-bottom:20px;

}

.service-link{

    color:var(--primary);

    font-weight:700;

}


/* =========================================================
   ABOUT
========================================================= */

.about{
    background:var(--light);
}

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

}

.about-content h2{

    font-size:42px;

    margin-bottom:25px;

}

.about-content p{

    margin-bottom:20px;

    color:var(--gray);

}


/* =========================================================
   FORMULARIOS
========================================================= */

form{

    background:var(--white);

    padding:40px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}

.form-group{
    margin-bottom:20px;
}

label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

input,
textarea,
select{

    width:100%;

    padding:16px;

    border:1px solid #d1d5db;

    border-radius:12px;

    font-size:16px;

    transition:var(--transition);

    background:#fff;

}

input:focus,
textarea:focus,
select:focus{

    outline:none;

    border-color:var(--primary);

}


/* =========================================================
   FOOTER
========================================================= */

footer{

    background:var(--dark);

    color:rgba(255,255,255,0.85);

    padding:70px 0 30px;

}

.footer-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));

    gap:40px;

    margin-bottom:40px;

}

.footer-logo img{

    height:60px;

    margin-bottom:20px;

}

.footer-links h3{

    margin-bottom:20px;

    color:#fff;

}

.footer-links a{

    display:block;

    margin-bottom:12px;

    transition:var(--transition);

}

.footer-links a:hover{
    color:var(--secondary);
}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,0.1);

    padding-top:25px;

    text-align:center;

    font-size:14px;

}


/* =========================================================
   WHATSAPP FLOAT
========================================================= */

.whatsapp-float{

    position:fixed;

    right:20px;
    bottom:20px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:#25D366;

    display:flex;

    align-items:center;

    justify-content:center;

    box-shadow:0 10px 30px rgba(0,0,0,0.2);

    z-index:999;

    transition:var(--transition);

}

.whatsapp-float:hover{
    transform:scale(1.08);
}


/* =========================================================
   SCROLL TOP
========================================================= */

.scroll-top{

    position:fixed;

    right:20px;
    bottom:100px;

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    font-size:24px;

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:var(--transition);

    z-index:998;

    box-shadow:var(--shadow);

}

.scroll-top.show{

    opacity:1;

    visibility:visible;

}

.scroll-top:hover{

    background:var(--primary-dark);

    transform:translateY(-3px);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:992px){

    .hero h1{
        font-size:42px;
    }

    .about-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    #site-header{

        position:fixed;

        top:0;
        left:0;

        width:100%;

    }

    body{
        padding-top:155px;
    }

    .navbar{

        flex-direction:column;

        gap:20px;

    }

    .nav-menu{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

    .hero{
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero h1{
        font-size:36px;
    }

    .section-title h2{
        font-size:32px;
    }

    section{
        padding:70px 0;
    }

}

@media(max-width:480px){

    .hero h1{
        font-size:30px;
    }

    .hero p{
        font-size:17px;
    }

    .btn{

        width:100%;

        text-align:center;

    }

    form{
        padding:25px;
    }

}