/* =====================================
   RESET
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',sans-serif;
    color:#333;
    background:#fff;
    line-height:1.6;
}

/* =====================================
   PALETA OFICIAL NH INDUSTRIAL
===================================== */

:root{

    --verde-oscuro:#002812;
    --verde-principal:#124926;
    --verde-claro:#36744F;

    --gris-metal:#98999C;
    --gris-claro:#C0C4C7;

    --blanco:#FFFFFF;
    --negro:#1E1E1E;
}

/* =====================================
   GENERALES
===================================== */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

section{
    padding:90px 0;
}

img{
    max-width:100%;
    display:block;
}

h2{
    text-align:center;
    font-size:2.5rem;
    color:var(--verde-principal);
    margin-bottom:60px;
}

/* =====================================
   HEADER
===================================== */

header{

    position:sticky;
    top:0;
    z-index:1000;

    background:var(--blanco);

    border-bottom:4px solid var(--verde-principal);

    box-shadow:0 3px 15px rgba(0,0,0,.08);
}

.nav{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 0;
}

.logo img{

    height:90px;
}

nav ul{

    display:flex;
    gap:30px;

    list-style:none;
}

nav a{

    text-decoration:none;
    color:var(--verde-principal);
    font-weight:600;

    transition:.3s;
}

nav a:hover{

    color:var(--verde-claro);
}

/* =====================================
   HERO SLIDER
===================================== */

.hero{
    padding:0;
}

.slider{

    position:relative;

    width:100%;
    height:90vh;

    overflow:hidden;
}

.slide{

    position:absolute;

    width:100%;
    height:100%;

    opacity:0;

    transition:opacity 1s ease;
}

.slide.active{
    opacity:1;
}

.slide img{

    width:100%;
    height:100%;

    object-fit:cover;
}

.overlay{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:
    linear-gradient(
        rgba(0,40,18,.80),
        rgba(0,40,18,.80)
    );

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    text-align:center;

    color:white;

    padding:20px;
}

.overlay h1{

    font-size:4.5rem;
    font-weight:800;

    max-width:1100px;

    margin-bottom:20px;
}

.overlay p{

    font-size:1.3rem;

    max-width:850px;
}

/* =====================================
   BOTONES
===================================== */

.hero-buttons{

    margin-top:35px;
}

.btn-primary,
.btn-secondary{

    display:inline-block;

    padding:15px 35px;

    border-radius:6px;

    text-decoration:none;

    font-weight:600;

    margin:10px;

    transition:.3s;
}

.btn-primary{

    background:var(--verde-principal);
    color:white;
}

.btn-primary:hover{

    background:var(--verde-claro);
    transform:translateY(-3px);
}

.btn-secondary{

    background:white;
    color:var(--verde-principal);
}

.btn-secondary:hover{

    background:#f0f0f0;
}

/* =====================================
   QUIENES SOMOS
===================================== */

.about{

    background:white;
}

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;
}

.about-image img{

    border-radius:12px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.15);
}

.about-content h3{

    color:var(--verde-principal);

    margin-bottom:15px;
}

.about-content p{

    margin-bottom:20px;
}

/* =====================================
   SERVICIOS
===================================== */
.cards{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:30px;
}


.services{

    padding:120px 0;

    position:relative;

    background:
    linear-gradient(
        rgba(0,40,18,.80),
        rgba(18,73,38,.80)
    ),
    url('../img/industrias/servicios.jpg');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}

.services h2{
    color:white;
}

.services .cards{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:30px;
}

.services .card{

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(5px);

    padding:35px;

    border-radius:12px;

    border-top:5px solid var(--verde-principal);

    box-shadow:
    0 8px 25px rgba(0,0,0,.20);

    transition:.3s;
}

.services .card:hover{

    transform:translateY(-8px);

    background:white;
}

.services .card h3{

    color:var(--verde-principal);

    margin-bottom:15px;

    font-size:1.5rem;
}

.services .card p{

    color:#333;

    font-size:1rem;
}

.services .card{

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(5px);

    border-top:5px solid var(--verde-principal);
}

/* =====================================
   PRODUCTOS
===================================== */

.products{

    background:white;
}

.products .card{

    text-align:center;
}

.products .card img{

    height:220px;

    object-fit:contain;

    margin:auto;

    margin-bottom:20px;
}

/* =====================================
   MARCAS
===================================== */

.brands{

    background:#f4f6f5;
}

.brands-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:25px;

    align-items:center;
}

.brands-grid img{

    background:white;

    padding:20px;

    border-radius:10px;

    box-shadow:
    0 3px 10px rgba(0,0,0,.08);

    height:100px;

    width:100%;

    object-fit:contain;

    transition:.3s;
}

.brands-grid img:hover{

    transform:scale(1.05);
}

/* =====================================
   GALERIA
===================================== */

.gallery{

    background:white;
}

.gallery-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;
}

.gallery-grid img{

    width:100%;
    height:300px;

    object-fit:cover;

    border-radius:12px;

    transition:.3s;
}

.gallery-grid img:hover{

    transform:scale(1.03);
}

/* =====================================
   CONTACTO
===================================== */

.contact{

    background:#f4f6f5;
}

.contact-box{

    background:white;

    padding:50px;

    border-radius:15px;

    box-shadow:
    0 5px 15px rgba(0,0,0,.08);

    text-align:center;
}

.contact-box h3{

    color:var(--verde-principal);

    margin-bottom:20px;
}

.contact-box p{

    margin-bottom:12px;

    font-size:1.1rem;
}

/* =====================================
   FOOTER
===================================== */

footer{

    background:var(--verde-oscuro);

    color:white;

    text-align:center;

    padding:30px;
}


/* =====================================
   ESTADISTICAS
===================================== */

.stats{

    background:var(--verde-principal);

    color:white;

    padding:70px 0;
}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    text-align:center;
}

.stats-grid h3{

    font-size:3rem;

    font-weight:700;
}

.stats-grid p{

    margin-top:10px;

    font-size:1.1rem;
}

@media(max-width:768px){

    .stats-grid{

        grid-template-columns:repeat(2,1fr);

        gap:40px;
    }
}


/* =====================================
   RESPONSIVE
===================================== */

@media(max-width:992px){

    .about-grid{

        grid-template-columns:1fr;
    }

    .gallery-grid{

        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .nav{

        flex-direction:column;
        gap:20px;
    }

    nav ul{

        flex-wrap:wrap;
        justify-content:center;
    }

    .overlay h1{

        font-size:2.3rem;
    }

    .overlay p{

        font-size:1rem;
    }

    .slider{

        height:75vh;
    }

    h2{

        font-size:2rem;
    }




    
}
/* ==========================
   PRODUCTOS NH
========================== */

.products{
    background:#fff;
}

.products .cards{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.products .card{

    text-align:center;

    background:#fff;

    padding:30px;

    border-radius:15px;

    box-shadow:
    0 5px 20px rgba(0,0,0,.08);

    transition:.3s;
}

.products .card:hover{

    transform:translateY(-8px);
}

.products .card img{

    width:100%;

    max-width:250px;

    height:220px;

    object-fit:contain;

    margin:auto auto 20px;
}

.products .card h3{

    color:var(--verde-principal);

    margin-bottom:10px;
}

/*=====================================
INDUSTRIAS
=====================================*/

.industries{

    position:relative;

    padding:110px 0;

    background:
        linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.92)),
        url("../img/logo/nh.png");

    background-repeat:no-repeat;

    background-position:center;

    background-size:500px;

}

.industries h2{

    margin-bottom:70px;

}

.industries-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:35px;

}

.industry-card{

    background:rgba(18,73,38,.82);

    backdrop-filter:blur(8px);

    border-radius:15px;

    padding:45px 30px;

    text-align:center;

    color:white;

    transition:.35s;

    border:1px solid rgba(255,255,255,.15);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.industry-card:hover{

    background:rgba(54,116,79,.95);

    transform:translateY(-8px);

    box-shadow:0 25px 40px rgba(0,0,0,.25);

}

.industry-card i{

    font-size:48px;

    margin-bottom:20px;

    color:white;

}

.industry-card h3{

    font-size:1.4rem;

    font-weight:600;

}