/* ===================================
   G&R CONTROL PERÚ
   CORPORATE INDUSTRIAL THEME
=================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#1e293b;
    overflow-x:hidden;
}

.container{
    width:90%;
    max-width:1400px;
    margin:auto;
}

/* ===================================
   TOP BAR
=================================== */

.top-bar{
    background:#062B73;
    color:#fff;
    padding:10px 0;
    font-size:14px;
}

.top-container{
    display:flex;
    justify-content:center;
    gap:35px;
    flex-wrap:wrap;
}

/* ===================================
   HEADER
=================================== */

header{
    position:sticky;
    top:0;
    z-index:999;
    background:#fff;
    box-shadow:0 4px 20px rgba(0,0,0,.08);
}

.header-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 0;
}

.logo img{
    height:85px;
    width:auto;
}

nav{
    display:flex;
    gap:40px;
}

nav a{
    text-decoration:none;
    color:#062B73;
    font-weight:600;
    position:relative;
    transition:.3s;
}

nav a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:3px;
    background:#1E63E9;
    transition:.3s;
}

nav a:hover::after{
    width:100%;
}

.btn-header{
    background:#1E63E9;
    color:#fff;
    padding:16px 28px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn-header:hover{
    background:#0f4cc5;
}

/* ===================================
   HERO
=================================== */

.hero{
    position:relative;
    background:
    linear-gradient(
    rgba(0,15,50,.80),
    rgba(0,15,50,.80)),
    url('../images/hero-bg.jpg');

    background-size:cover;
    background-position:center;
    min-height:88vh;
    display:flex;
    align-items:center;
}

.hero-container{
    display:grid;
    grid-template-columns:55% 45%;
    gap:60px;
    align-items:center;
}

.hero-tag{
    display:inline-block;
    background:#fff;
    color:#1E63E9;
    padding:10px 22px;
    border-radius:40px;
    font-weight:700;
    margin-bottom:25px;
}

.hero h1{
    font-size:5rem;
    line-height:1.05;
    color:#fff;
    font-weight:800;
    margin-bottom:25px;
}

.hero h1 span{
    color:#58A6FF;
}

.hero p{
    color:rgba(255,255,255,.92);
    font-size:1.2rem;
    line-height:1.8;
    max-width:650px;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:18px;
    margin-bottom:35px;
}

.btn-primary{
    background:#1E63E9;
    color:#fff;
    padding:18px 30px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

.btn-whatsapp{
    background:#25D366;
    color:#fff;
    padding:18px 30px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

.hero-badges{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.hero-badges span{
    background:rgba(255,255,255,.15);
    color:#fff;
    border:1px solid rgba(255,255,255,.20);
    padding:12px 20px;
    border-radius:40px;
    font-size:14px;
    font-weight:600;
}

.hero-image img{
    width:100%;
    border-radius:20px;
    box-shadow:0 30px 60px rgba(0,0,0,.40);
}

/* ===================================
   SECTION TITLE
=================================== */

.section-header{
    text-align:center;
    margin-bottom:60px;
}

.section-header span{
    color:#1E63E9;
    font-size:14px;
    letter-spacing:2px;
    font-weight:700;
}

.section-header h2{
    margin-top:10px;
    font-size:3rem;
    color:#062B73;
}

/* ===================================
   SERVICES
=================================== */

.services{
    padding:100px 0;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.service-card{
    background:#fff;
    border-radius:18px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.3s;
    height:320px;
}

.service-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.service-icon{
    font-size:40px;
    margin-bottom:20px;
    color:#0d47a1;
}

.service-card h3{
    color:#062B73;
    margin-bottom:20px;
}

.service-card ul{
    list-style:none;
}

.service-card ul li{
    margin-bottom:10px;
    color:#64748b;
}

.service-card a{
    display:inline-block;
    margin-top:20px;
    text-decoration:none;
    color:#1E63E9;
    font-weight:700;
}

/* ===================================
   SECTORES
=================================== */

.sectores{
    background:#fff;
    padding:100px 0;
}

.sectores-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
}

.sector{
    background:#062B73;
    color:#fff;
    text-align:center;
    padding:25px;
    border-radius:14px;
    font-weight:600;
    transition:.3s;
}

.sector:hover{
    background:#1E63E9;
    transform:translateY(-5px);
}

/* ===================================
   NOSOTROS
=================================== */

.nosotros{
    padding:100px 0;
}

.nosotros-content{
    max-width:1000px;
    margin:auto;
    text-align:center;
}

.nosotros-content p{
    font-size:1.15rem;
    line-height:2;
    color:#475569;
}

.valores{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-top:50px;
}

.valor{
    background:#fff;
    padding:30px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.valor h4{
    color:#062B73;
    margin-top:15px;
}

/* ===================================
   WHATSAPP
=================================== */

.whatsapp-float{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25D366;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    z-index:999;
}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:992px){

    .hero-container{
        grid-template-columns:1fr;
    }

    .services-grid{
        grid-template-columns:1fr;
    }

.sectores-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
    margin-top:50px;
}

.sector-item{
    background:#fff;
    padding:40px 20px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
}

.sector-item:hover{
    transform:translateY(-8px);
}

.sector-card{
    background:#fff;
    padding:30px 15px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    transition:.3s;
}

.sector-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.sector-card i{
    font-size:36px;
    color:#0d47a1;
    margin-bottom:15px;
}

    .valores{
        grid-template-columns:1fr 1fr;
    }

    .hero h1{
        font-size:3.5rem;
    }
}

@media(max-width:768px){

    .header-container{
        flex-direction:column;
        gap:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero h1{
        font-size:2.7rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .sectores-grid{
        grid-template-columns:1fr;
    }

    .valores{
        grid-template-columns:1fr;
    }
}

.stats{
    background:#0d3b8e;
    padding:100px 0;
}

.stats-grid{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
}

.stat-item{
    text-align:center;
    position:relative;
}

.stat-item:not(:last-child)::after{
    content:"";
    position:absolute;
    right:-20px;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:80px;
    background:rgba(255,255,255,.2);
}

.stat-number{
    font-size:72px;
    font-weight:800;
    color:#fff;
    line-height:1;
    margin-bottom:15px;
}

.stat-label{
    color:#fff;
    font-size:22px;
    line-height:1.4;
}
.stats{
    background:linear-gradient(
        180deg,
        #123a8a 0%,
        #0d3b8e 100%  );
}
/* =========================
   ABOUT
========================= */

.about{
    padding:120px 0;
    background:#f8fafc;
}

.about-grid{
    max-width:1200px;
    margin:auto;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
}

.about-image img{
    width:100%;
    max-height:450px;
    object-fit:cover;

    border-radius:20px;

    box-shadow:0 20px 50px rgba(0,0,0,.12);

    display:block;
     
}

.about-content{
    width:100%;
}

.about-content h2{
    font-size:58px;
    line-height:1.1;
    color:#0b357d;
    margin-bottom:30px;
     margin-top:20px;
}

.about-content p{
    font-size:18px;
    line-height:1.9;
    color:#555;
    text-align:justify;
    margin-bottom:25px;
}

.about-features{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-top:35px;
    margin-bottom:40px;
}

.about-btn{
    display:inline-block;
    margin-top:40px;
    padding:16px 36px;
    background:#1f6bff;
    color:#fff;
    text-decoration:none;
    border-radius:12px;
    font-weight:700;
    transition:.3s;
}

.about-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(31,107,255,.25);
}

.feature{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:600;
    color:#0b357d;
}

.feature i{
    color:#1f6bff;
}

/* =========================
   PROYECTOS
========================= */

.projects{
    padding:120px 0;
    background:#f8fafc;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-top:60px;
}

.project-card{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    height:320px;
    cursor:pointer;
    box-shadow:0 15px 40px rgba(0,0,0,.10);
}

.project-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
    
}

.project-overlay{
    position:absolute;
    inset:0;
    transition:.4s;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.15)
    );

    display:flex;
    flex-direction:column;
    justify-content:flex-end;

    padding:25px;
}

.project-overlay h3{
    color:#fff;
    font-size:22px;
    margin-bottom:5px;
}

.project-overlay p{
    color:#ddd;
    margin:0;
}

.project-card:hover img{
    transform:scale(1.08);
    transform:translateY(-10px);
}

.project-card:hover .project-overlay{
    background:linear-gradient(
        to top,
        rgba(11,53,125,.95),
        rgba(11,53,125,.20)
    );
}

/* =========================
   WHY US
========================= */

.why-us{
    padding:120px 0;
    background:#ffffff;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:60px;
}

.why-card{
    background:#fff;
    border-radius:20px;
    padding:40px;
    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.3s;
}

.why-card:hover{
    transform:translateY(-10px);
}

.why-card i{
    font-size:42px;
    color:#1f6bff;
    margin-bottom:20px;
}

.why-card h3{
    color:#0b357d;
    margin-bottom:15px;
}

.why-card p{
    color:#666;
    line-height:1.7;
}

/* =========================
   CLIENTES
========================= */

.clients{
    padding:120px 0;
    background:#f8fafc;
}

.clients-grid{
    margin-top:60px;

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.client-box{
    height:120px;

    background:#fff;

    border:2px solid #eef2f7;

    border-radius:16px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:22px;
    font-weight:700;
    color:#0b357d;

    transition:.3s;
}

.client-box:hover{
    border-color:#1f6bff;
    transform:translateY(-5px);
}

/* =========================
   CONTACTO
========================= */

.contact{
    padding:120px 0;
    background:#ffffff;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:60px;
    margin-top:60px;
}

.contact-info{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.info-card{
    display:flex;
    gap:20px;
    align-items:flex-start;

    background:#f8fafc;

    padding:25px;

    border-radius:16px;
}

.info-card i{
    font-size:24px;
    color:#1f6bff;
    margin-top:4px;
}

.info-card h4{
    margin-bottom:6px;
    color:#0b357d;
}

.info-card p{
    margin:0;
    color:#666;
}

.contact-form{
    background:#f8fafc;
    padding:40px;
    border-radius:20px;
}

.contact-form form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
    width:100%;

    padding:16px;

    border:1px solid #dbe4f0;

    border-radius:12px;

    font-size:15px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
    outline:none;
    border-color:#1f6bff;
}

.contact-form button{
    background:#1f6bff;
    color:#fff;

    border:none;

    padding:18px;

    border-radius:12px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;
}

.contact-form button:hover{
    background:#0b57e3;
}

/* =========================
   FOOTER
========================= */

.footer{
    background:#062B73;
    color:#fff;
    padding:80px 0 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
}

.footer-logo{
    height:80px;
    margin-bottom:20px;
}

.footer-col h3{
    margin-bottom:20px;
    font-size:20px;
}

.footer-col p{
    color:rgba(255,255,255,.85);
    line-height:1.8;
    text-align: justify;
}

.footer-col ul{
    list-style:none;
    padding:0;
}

.footer-col ul li{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
    color:rgba(255,255,255,.9);
}

.footer-col ul li i{
    color:#4da3ff;
    width:20px;
    text-align:center;
}

.footer-col ul li a{
    color:rgba(255,255,255,.85);
    text-decoration:none;
}

.footer-col ul li a:hover{
    color:#fff;
}

.footer-col i{
    margin-right:10px;
}

.footer-bottom{
    margin-top:50px;
    padding-top:25px;
    border-top:1px solid rgba(255,255,255,.15);
    text-align:center;
}

.footer-bottom p{
    color:rgba(255,255,255,.75);
}

@media (max-width: 992px){

.hero-content,
.about-grid,
.contact-grid{
    grid-template-columns:1fr;
}

.services-grid,
.projects-grid,
.sectores-grid{
    grid-template-columns:1fr 1fr;
}

.stats-grid{
    grid-template-columns:1fr 1fr;
}

.hero h1{
    font-size:48px;
}

}

@media (max-width:768px){

.services-grid,
.projects-grid,
.sectores-grid,
.stats-grid{
    grid-template-columns:1fr;
}

.hero h1{
    font-size:38px;
}

.nav-links{
    display:none;
}

.logo img{
    max-width:220px;
}

}