/* ================= RESET ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat', sans-serif;
    color:#222;
    overflow-x:hidden;
    background:#fff;
}

/* ================= CONTAINER ================= */
.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ================= HEADER ================= */
.header{
    position:fixed;
    width:100%;
    background:#fff;
    z-index:1000;
    border-bottom:1px solid #eee;
    transition:0.3s;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:75px;
}

/* ================= LOGO ================= */
/* El estilo del logo se unificó al final en la SECCIÓN MAESTRA */

/* ================= MENU ================= */
.menu{
    margin-left:auto;
    margin-right:35px;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    justify-content:center;
}

.menu a{
    margin-left:28px;
    text-decoration:none;
    color:#222;
    font-weight:600;
    transition:0.3s;
    font-size:0.95rem;
    white-space:nowrap;
}

.menu a:hover{
    color:#0056ff;
}

/* ================= SEARCH ================= */
.nav-search a{
    display:flex;
    align-items:center;
}

.nav-search img{
    width:24px;
    transition:0.3s;
}

.nav-search img:hover{
    transform:scale(1.1);
}

/* ================= BANNER ================= */
.banner{
    position:relative;
    height:520px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
}

.banner-bg{
    position:absolute;
    width:100%;
    height:100%;
    object-fit:cover;
}

.banner-overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
}

.banner-content{
    position:relative;
    z-index:2;
    text-align:center;
    color:#fff;
}

/* CAMBIO SEO: Ahora apunta a h2 en lugar de h1 */
.banner-content h2{
    font-size:3.5rem;
    margin-bottom:18px;
}

.banner-content p{
    font-size:1.2rem;
    line-height:1.8;
}

/* ================= SECTIONS ================= */
.products-section{
    padding:30px 0;
}

.empresarial{
    background:#f8f9fc;
}

.residencial{
    background:#f8f9fc;
}

.section-title{
    text-align:center;
    margin-bottom:55px;
}

.section-title h2{
    font-size:2.5rem;
    color:#111;
}

/* ================= GRID ================= */
.products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

/* ================= CARD ================= */
.product-card{
    position:relative;
    height:430px;
    border-radius:22px;
    overflow:hidden;
    text-decoration:none;
    box-shadow:0 12px 30px rgba(0,0,0,0.10);
    transition:0.4s;
}

.product-card:hover{
    transform:translateY(-10px);
}

.product-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s;
}

.product-card:hover img{
    transform:scale(1.08);
}

/* ================= OVERLAY ================= */
.product-overlay{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:35px;
    background:linear-gradient(
        to top,
        rgba(0,0,0,0.88),
        rgba(0,0,0,0.30),
        transparent
    );
    color:#fff;
}

.product-overlay h3{
    font-size:1.8rem;
    margin-bottom:10px;
}

.product-overlay p{
    font-size:0.96rem;
    line-height:1.7;
}

/* ================= FOOTER ================= */
.footer{
    background:#f2f2f2;
    padding:30px 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:40px;
}

.footer h4{
    color:#111;
    margin-bottom:18px;
    font-size:1rem;
    line-height:1.6;
}

.footer h4 a{
    color: #111;
    text-decoration:none;
}

.footer a{
    display:block;
    color:#111;
    text-decoration:none;
    margin-bottom:12px;
    transition:0.3s;
    font-size:0.95rem;
}

.footer a:hover{
    color:#0056ff;
}

/* FOOTER SEARCH */
.footer-search {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #cfcfcf;
}

.footer-search a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    text-decoration: none;
    color: #222;
}

.footer-search img {
    width: 120px;
    transition: 0.3s;
}

.footer-search img:hover {
    transform: scale(1.03);
}

.footer-search span {
    font-weight: 600;
}

/* ================= WHATSAPP ================= */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
}


/* ================= LOGOS ================= */
.proveedores-logos{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.proveedores-logos img{
    width:100%;
    height:55px;
    object-fit:contain;
    background:#fff;
    padding:6px;
    border-radius:10px;
}

/* ================= FOOTER SOCIAL ================= */
.footer-social{
    margin-top:20px;
    display:flex;
    align-items:center;
    gap:15px;
}

.footer-social a{
    width:45px;
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    border-radius:12px;
    transition:0.3s;
    box-shadow:0 4px 12px rgba(0,0,0,0.10);
}

.footer-social a:hover{
    transform:translateY(-4px);
    background:#0056ff;
}

.footer-social img{
    width:22px;
    height:22px;
    object-fit:contain;
}

/* ================= RESPONSIVE ESPECÍFICO DE "SERVICIOS" ================= */
@media(max-width:1100px){
    .footer-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:992px){
    .products-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:768px){
    .container { width: 92%; }
    
    .banner{
        height:420px;
    }
    /* CAMBIO SEO: Se mantiene responsivo para el H2 del banner */
    .banner-content h2{
        font-size:2.2rem;
    }
    .banner-content p{
        font-size:1rem;
    }
    .section-title h2{
        font-size:2rem;
    }
    .products-grid{
        grid-template-columns:1fr;
    }
    .product-card{
        height:360px;
    }
    .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
    }
    .footer-social{
        justify-content:center;
    }
    .proveedores-logos {
        max-width: 220px;
        margin: auto;
    }
}


/* ========================================================================= */
/* --- SECCIÓN MAESTRA UNIFICADA (RESPONSIVE HEADER Y MENÚ MÓVIL) --- */
/* ========================================================================= */

/* ESTILO MAESTRO PARA EL LOGO (Evita que cambie de tamaño o tenga subrayado) */
.header .logo a,
.header .logo strong {
    font-size: 2.0rem !important;
    font-weight: 800 !important;
    color: #111 !important;
    text-decoration: none !important;
}

/* --- COMPONENTES DEL MENÚ MÓVIL --- */
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 1001; border-radius: 8px; transition: background 0.2s; }
.hamburger-btn:hover { background: #f1f5f9; }
.hamburger-btn span { display: block; width: 25px; height: 3px; background: #0f172a; border-radius: 2px; }

.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); z-index: 2000; opacity: 0; transition: 0.3s; backdrop-filter: blur(3px);}
.mobile-menu-overlay.active { display: block; opacity: 1; }

.mobile-menu-drawer { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background: #fff; z-index: 2001; box-shadow: -5px 0 30px rgba(0,0,0,0.15); transition: right 0.3s; display: flex; flex-direction: column; overflow-y: auto; padding-top: 20px;}
.mobile-menu-drawer.active { right: 0; }
.mobile-menu-drawer .close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 24px; color: #64748b; cursor: pointer; }
.mobile-menu-drawer a { display: block; padding: 15px 25px; font-family: 'Montserrat', sans-serif; font-weight: 700; color: #1e293b; text-decoration: none; border-bottom: 1px solid #f1f5f9; }

/* Para iluminar la pestaña activa */
.menu a.active, .mobile-menu-drawer a.active { color: #0056ff; }


/* --- CORRECCIÓN VISUAL: HEADER TABLETS Y MÓVILES --- */
@media (max-width: 1200px) {
    /* Ocultar menú de texto de PC */
    .menu { display: none !important; }

    /* Forzar diseño en una sola línea horizontal */
    .header .nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 70px !important;
        padding: 0 20px !important;
        flex-wrap: nowrap !important;
    }

    /* Logo a la izquierda */
    .header .logo {
        margin-right: auto !important;
        margin-bottom: 0 !important;
        text-align: left !important;
        width: auto !important;
        order: 1 !important;
    }

    /* Lupa antes de la hamburguesa */
    .header .nav-search {
        margin-left: 0 !important;
        margin-right: 20px !important;
        margin-bottom: 0 !important;
        position: static !important;
        display: flex !important;
        align-items: center !important;
        order: 2 !important;
    }

    /* Botón hamburguesa al extremo derecho */
    .header .hamburger-btn {
        display: flex !important;
        margin: 0 !important;
        order: 3 !important;
    }
}

@media (max-width: 768px) {
    /* Ajustes finos para celulares */
    .header .nav { padding: 0 15px !important; }
    .header .nav-search img { width: 22px !important; height: 22px !important; }
}