/* ==========================================================
   ESTILOS GENERALES - MC PRODUCTOS QUÍMICOS (LIGHT INDUSTRIAL B2B)
   ========================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --primary-green: #059669;
    --primary-hover: #047857;
    --accent-m55: #dc2626;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
/* --- LOGO HEADER (MATRAZ + TEXTO VERDE) --- */
.logo-header {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Espacio prolijo entre el matraz y el texto */
}

/* El matraz */
.logo-header img {
    height: 42px;
    width: auto;
    display: block;
}

/* El texto "PRODUCTOS QUÍMICOS" */
.logo-header .brand-quimicos {
    font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    font-size: 1.15rem;
    font-weight: 500; /* Letra estilizada, ni muy fina ni muy tosca */
    color: #00A859; /* El verde limpio de la marca */
    text-transform: uppercase;
    letter-spacing: 2px; /* Espaciado entre letras que le da el toque moderno */
}
.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1e293b;
}

.brand-name span {
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-green);
}

.btn-cotizar-header {
    background: var(--primary-green);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-cotizar-header:hover {
    background: var(--primary-hover);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 3.5rem 5% 2.5rem 5%;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.badge-tag {
    background: rgba(5, 150, 105, 0.08);
    color: var(--primary-green);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(5, 150, 105, 0.2);
    display: inline-block;
}

.hero-header-text h1 {
    font-size: 2.3rem;
    margin: 1rem 0 2rem 0;
    font-weight: 800;
    color: #0f172a;
}

.hero-media-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 25px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
}

.brand-card {
    background: var(--bg-main);
    padding: 1.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s ease;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mc-card:hover {
    border-color: var(--primary-green);
}

.m55-card:hover {
    border-color: var(--accent-m55);
}

.brand-card img {
    max-width: 130px;
    height: auto;
    margin-bottom: 0.8rem;
}

.brand-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: #1e293b;
}

.brand-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.video-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    background: #000;
}

.video-wrapper video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* --- BOTONES DE ACCIÓN HERO --- */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-main);
    border-color: #94a3b8;
}

/* --- BARRA DE BENEFICIOS --- */
.features-bar {
    display: flex;
    justify-content: space-around;
    padding: 2rem 5%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.feature-item h4 {
    font-size: 0.95rem;
    color: #1e293b;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================
   ESTILOS CATÁLOGO PRINCIPAL Y LISTAS (INDUSTRIAL B2B)
   ========================================================== */

.catalog-section, .catalog-container {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.section-title, .catalog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2, .catalog-header h2 {
    font-size: 2rem;
    color: #0f172a;
    font-weight: 800;
}

.section-title p, .catalog-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pestañas de Selección de Línea */
.catalog-tabs, .main-line-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn, .line-tab-btn {
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover, .line-tab-btn:hover {
    color: #0f172a;
    border-color: var(--primary-green);
    background: var(--bg-main);
}

.tab-btn.active, .line-tab-btn.active {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

/* Pestaña M55 */
.line-tab-btn.m55-tab.active, .btn-m55-tab.active {
    background: var(--accent-m55) !important;
    border-color: var(--accent-m55) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2) !important;
}

/* Sub-filtros */
.subfilters-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sub-tab-btn {
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sub-tab-btn:hover, .sub-tab-btn.active {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

/* Ocultar elementos */
.line-content.hidden, .product-card.hidden, .subfilters-container.hidden {
    display: none;
}

/* Títulos de Sectores / Categorías */
.sector-group {
    margin-bottom: 2.5rem;
}

.sector-title {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #0f172a;
}

.metal-title { background: #e0f2fe; color: #0369a1; border-left-color: #0284c7; }
.plastic-title { background: #d1fae5; color: #047857; border-left-color: #059669; }
.yellow-title { background: #fef9c3; color: #a16207; border-left-color: #ca8a04; }
.green-title { background: #dcfce7; color: #15803d; border-left-color: #16a34a; }
.magenta-title { background: #fce7f3; color: #be185d; border-left-color: #db2777; }

/* Listados Compactos en Filas */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
}

.list-item:hover {
    background: #f1f5f9;
    border-color: var(--border-strong);
}

.item-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.item-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: right;
    max-width: 60%;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-envase {
    background: #e2e8f0;
    color: #334155;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Grid de Tarjetas (Si se usan tarjetas) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.8rem;
}

.m55-icon {
    color: var(--accent-m55) !important;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.btn-card-quote {
    background: rgba(5, 150, 105, 0.08);
    color: var(--primary-green);
    border: 1px solid rgba(5, 150, 105, 0.2);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-card-quote:hover {
    background: var(--primary-green);
    color: #ffffff;
}

/* --- FOOTER --- */
.main-footer {
    background: #0f172a;
    padding: 3rem 5% 1.5rem 5%;
    color: #f8fafc;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.85rem;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* --- ADAPTACIÓN RESPONSIVA --- */
@media (max-width: 768px) {
    .hero-media-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero-header-text h1 {
        font-size: 1.7rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .item-desc {
        text-align: left;
        max-width: 100%;
    }
}
/* ==========================================================
   ESTILOS SECCIÓN CONTACTO
   ========================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 3rem;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    background: rgba(5, 150, 105, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 3px;
}

.contact-card p, .contact-card a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--primary-green);
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.contact-form-card h3 {
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-green);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* --- SECCIÓN TRATAMIENTO DE AGUA --- */
.agua-section {
    padding: 20px 0;
}

.agua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.agua-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-top: 4px solid #00A859; /* Borde verde técnico */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.agua-card h3 {
    color: #1A2B3C;
    font-size: 1.15rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.agua-card h3 i {
    color: #00A859;
}

/* Lista de productos con estilo badge */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-badges li {
    background-color: #f0fdf4;
    color: #008f4c;
    border: 1px solid #bbf7d0;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Banner de Cotización por Email */
.cotizacion-banner {
    background: linear-gradient(135deg, #1A2B3C 0%, #0d1721 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.cotizacion-banner h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.cotizacion-banner p {
    color: #a0aec0;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-email-quote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #00A859;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-email-quote:hover {
    background-color: #008f4c;
    transform: translateY(-2px);
}