/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat', sans-serif;
    color:#222;
}

.container{
    width:90%;
    max-width:1300px;
    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 */
.logo a{
    text-decoration:none;
}

.logo strong{
    font-size:2.0rem;
    color:#111;
}

/* 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);
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media(max-width:992px){

    .nav{
        padding:0 15px;
    }

    .menu{
        margin-right:20px;
    }

    .menu a{
        margin-left:16px;
        font-size:0.88rem;
    }

}

/* TELEFONO */
@media(max-width:768px){

    .header{
        position:relative;
    }

    .nav{
        flex-direction:column;
        justify-content:center;
        align-items:center;

        height:auto;

        padding:15px 10px;
        gap:15px;
    }

    .logo{
        text-align:center;
    }

    .logo strong{
        font-size:1.35rem;
    }

    .menu{
        margin:0;

        width:100%;

        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;

        gap:10px 14px;
    }

    .menu a{
        margin:0;
        font-size:0.85rem;
    }

    .nav-search{
        margin-top:5px;
    }

    .nav-search img{
        width:22px;
    }

}

/* TELEFONOS PEQUEﾃ前S */
@media(max-width:480px){

    .nav{
        padding:12px 8px;
    }

     .logo strong{
        text-decoration:none;
        color:#111;
        font-size:2.0rem;
        font-weight:700;
    }

    .menu{
        gap:8px 10px;
    }

    .menu a{
        font-size:0.78rem;
    }

    .nav-search img{
        width:20px;
    }

}

/* BANNER */
.banner-productos{
    position:relative;
    height:420px;
    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:center;
}

.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.5);
}

.banner-content{
    position:relative;
    z-index:2;
}

.banner-content h1{
    color:#fff;
    font-size:3rem;
}

/* INTRO */
.intro-productos{
    padding:80px 0 50px;
}

.section-title{
    text-align:center;
}

.section-title h2{
    font-size:2.5rem;
    margin-bottom:15px;
}

/* TABS */
.tabs-section{
    padding-bottom:50px;
}

.tabs-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
}

.tab-btn{
    padding:15px 30px;
    border:none;
    background:#f2f2f2;
    border-radius:6px;
    cursor:pointer;
    font-weight:600;
    transition:0.3s;
}

.tab-btn.active{
    background:#0056ff;
    color:#fff;
}

/* CONTENT */
.products-section{
    padding-bottom:100px;
}

.tab-content{
    display:none;
}

.tab-content.active{
    display:block;
}

/* GRID */
.products-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

/* CARD */
.product-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,0.08);
    transition:0.4s;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-image{
    height:260px;
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s;
}

.product-card:hover img{
    transform:scale(1.08);
}

.product-info{
    padding:25px;
}

.product-info h3{
    margin-bottom:12px;
}

.product-info p{
    line-height:1.7;
    margin-bottom:25px;
}

.product-info a{
    display:inline-block;
    padding:12px 25px;
    background:#0056ff;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    transition:0.3s;
}

.product-info a:hover{
    background:#003fc2;
}

/* ================= FOOTER ================= */
.footer{
    background:#f2f2f2;
    padding:30px 0;
}

.footer-search{
    padding-bottom:20px;
    margin-bottom:30px;
    border-bottom:1px solid #cfcfcf;
}

.footer-search img{
    width:120px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:30px;
}

.footer-grid h4{
    margin-bottom:12px;
}

.footer a{
    display:block;
    margin:6px 0;
    color:#333;
    text-decoration:none;
    transition:0.3s;
}

.footer a:hover{
    color:#0056ff;
}

/* PROVEEDORES */
.proveedores-logos{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.proveedores-logos img{
    width:70px;
    border-radius:4px;
}

/* ================= 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;
}

/* ================= 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;
}


/* ================= 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;
}

/* ================= RESPONSIVE ================= */
@media (max-width:992px){

    .cards-grid{
        grid-template-columns:1fr;
    }

    .feature-grid{
        grid-template-columns:1fr;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media (max-width:768px){

    .nav{
        flex-direction:column;
        height:auto;
        padding:15px 0;
    }

    .menu{
        margin:15px 0;
    }

    .menu a{
        margin:0 10px;
        display:inline-block;
    }

    .banner-content h1{
        font-size:2rem;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }

    .section-title h2,
    .content-title h2{
        font-size:1.8rem;
    }

}

/* ================= MOBILE FIXES ================= */
@media (max-width:768px){

    body{
        overflow-x:hidden;
    }

    .container{
        width:92%;
    }

    /* ================= HEADER ================= */
    .header{
        position:relative;
    }

    .nav{
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:12px;
        height:auto;
        padding:15px 0;
    }

    .logo{
        text-align:center;
    }

    .menu{
        margin:0;
        width:100%;

        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;

        gap:10px 14px;
    }

    .menu a{
        margin:0;
        font-size:0.88rem;
        line-height:1.4;
    }

    .nav-search{
        margin-top:5px;
    }

    /* ================= BANNER ================= */
    .banner-productos{
        height:300px;
        padding:0 15px;
    }

    .banner-content{
        width:100%;
        text-align:center;
    }

    .banner-content h1{
        font-size:1.8rem;
        line-height:1.4;
    }

    /* ================= INTRO ================= */
    .intro-productos{
        padding:50px 0 35px;
    }

    .section-title h2{
        font-size:1.8rem;
        line-height:1.4;
    }

    .section-title p{
        font-size:0.95rem;
        line-height:1.7;
    }

    /* ================= TABS ================= */
    .tabs-section{
        padding-bottom:35px;
    }

    .tabs-buttons{
        gap:12px;
    }

    .tab-btn{
        width:100%;
        max-width:320px;
        text-align:center;
        padding:14px 18px;
    }

    /* ================= PRODUCTS ================= */
    .products-section{
        padding-bottom:60px;
    }

    .products-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    .product-card{
        width:100%;
    }

    .product-image{
        height:230px;
    }

    .product-info{
        padding:22px;
    }

    .product-info h3{
        font-size:1.15rem;
        line-height:1.5;
    }

    .product-info p{
        font-size:0.95rem;
        line-height:1.8;
    }

    .product-info a{
        width:100%;
        text-align:center;
    }

    /* ================= FOOTER ================= */
    .footer{
        padding:40px 0;
    }
    
    .footer-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    .footer-grid div{
        text-align:center;
    }

    .footer-search{
        display:flex;
        justify-content:center;
    }

    .footer-social{
        justify-content:center;
        flex-wrap:wrap;
    }

    .proveedores-logos{
        max-width:220px;
        margin:auto;
    }

    /* 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{
        right:15px;
        bottom:15px;
        padding:11px 16px;
        font-size:0.9rem;
    }

}

/* --- 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 (Agrégale class="active" a la pestaña donde estés) */
.menu a.active, .mobile-menu-drawer a.active { color: #0056ff; }


/* =========================================
   CORRECCIÓN VISUAL: HEADER TABLETS Y MÓVILES
   ========================================= */
/* Cubre tablets horizontales, verticales y celulares */
@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 */
    .container { width: 92%; }
    .header .nav { padding: 0 15px !important; }
    .header .nav-search img { width: 22px !important; height: 22px !important; }
}