/* RESET & ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --primary-color: #f36c21;
    --primary-hover: #d85711;
    --dark-bg: #1c1d21;
    --light-bg: #f4f5f7;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
.header {
    background-color: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
}

.logo-img {
    height: 100px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav .btn-nav {
    background-color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 4px;
}

.nav .btn-nav:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

/* HERO SECTION (PANTALLA DE ESCRITORIO / PC) */
.hero {
    background: url('imagen-portada.png') center/cover no-repeat;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;  
    justify-content: center;
    padding-top: 80px;
    box-sizing: border-box;
}

/* NOSOTROS */
.about {
    min-height: 100vh;     
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    padding: 100px 20px 60px 20px; 
    scroll-margin-top: 80px;    
    box-sizing: border-box;
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.stat-card {
    background-color: var(--white);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CATÁLOGO */
.catalog { 
    min-height: 100vh;     
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    padding: 100px 20px 60px 20px;
    scroll-margin-top: 80px;    
    box-sizing: border-box;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.cotizacion-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
}

.category-block {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--dark-bg);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;     
    border-radius: 6px; 
    margin-bottom: 15px;
}

.product-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.product-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-product {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-product:hover {
    background-color: var(--primary-color);
}

/* CLIENTES */
.clients {
    min-height: 100vh;     
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
    padding: 80px 20px;     
    box-sizing: border-box;
    background-color: var(--light-bg);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.client-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.client-card.highlight {
    border: 2px solid var(--primary-color);
}

.client-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.client-card h3 {
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.client-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-card {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* CONTACTO */
.contact {
    min-height: 100vh;      
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;    
    padding: 120px 20px 80px 20px; 
    scroll-margin-top: 80px;   
    box-sizing: border-box;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.info-item a {
    color: var(--primary-color);
    font-weight: 500;
}

/* FOOTER */
.footer {
    background-color: var(--dark-bg);
    color: #aaa;
    text-align: center;
    padding: 25px 0;
    font-size: 0.85rem;
    border-top: 1px solid #333;
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Ocultar el botón de menú hamburguesa en computadoras */
.menu-toggle {
    display: none;
}

/* ==========================================
   AJUSTES EXCLUSIVOS PARA PANTALLAS MÓVILES
   ========================================== */
@media (max-width: 768px) {

    /* Alineación de Header: Logo a la izquierda, Botón a la derecha */
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0;
    }

    .logo-img {
        height: 50px !important; /* Ajusta el alto del logo en celulares */
    }

    /* Botón cuadradito con tres rayas */
    .menu-toggle {
        display: block !important;
        background: transparent;
        border: 1px solid #ffffff;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 1.2rem;
        color: var(--white);
        cursor: pointer;
    }

    /* Ocultar la lista de navegación en móvil */
    .nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column !important;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }

    /* Muestra el menú al tocar el botón */
    .nav.active {
        display: flex !important;
    }

    /* ... mantén aquí abajo el resto de tus reglas para .hero, #nosotros, etc. ... */
}

    /* Portada en celulares usando la imagen vertical o la estándar adaptada */
    .hero {
        background-image: url('imagen-portada-mobile.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        min-height: 50vh !important;
        padding-top: 100px !important;
    }

    #nosotros, #catalogo, #clientes, #contacto {
        min-height: auto !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    .product-grid, 
    .clients-grid,
    .about-grid, 
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}