/* ==========================================================================
   VARIABLES Y RESET (PALETA CORPORATIVA DE ALTO CONTRASTE)
   ========================================================================== */
:root {
    --brand-blue: #004d7b;        
    --brand-teal: #3d6b71;        
    --brand-green: #83bc29;       
    --brand-green-hover: #6a9c1e; 
    --dark-bg: #0b1c2c;           
    --text-dark: #1c2833;         
    --text-light: #6a7c8e;        
    --bg-light: #f0f4f8;          
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5 { 
    font-family: var(--font-heading); 
    font-weight: 800; 
    color: var(--brand-blue); 
    letter-spacing: -0.5px;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.text-small { font-size: 0.75rem; margin-left: 3px; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn { 
    display: inline-block; padding: 14px 32px; font-weight: 700; border-radius: 4px; 
    border: none; cursor: pointer; transition: var(--transition); text-transform: uppercase; 
    font-size: 0.9rem; letter-spacing: 0.5px;
}
.btn-primary { background-color: var(--brand-green); color: var(--white); }
.btn-primary:hover { background-color: var(--brand-green-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(131, 188, 41, 0.3);}
.btn-slider { background-color: var(--brand-green); color: var(--white); }
.btn-slider:hover { background-color: var(--brand-green-hover); }
.btn-white { background-color: var(--white); color: var(--brand-blue); }
.btn-white:hover { background-color: var(--bg-light); transform: translateY(-2px); }

/* ==========================================================================
   CABECERA Y NAVEGACIÓN
   ========================================================================== */
.topbar-hyrsac { display: none; } 

.middle-header { padding: 25px 0; background-color: var(--white); border-bottom: 1px solid #e1e8ed;}
.header-flex { display: flex; justify-content: space-between; align-items: center; gap: 30px; }

.logo { display: inline-block; }
.logo img { max-height: 100px; width: auto; height: auto; display: block; object-fit: contain; }

/* --- BUSCADOR --- */
.search-container { flex: 1; max-width: 600px; display: flex; border: 2px solid var(--brand-blue); border-radius: 4px; position: relative; background: #fff;}
.search-container input { flex: 1; padding: 12px 20px; border: none; outline: none; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--text-dark); border-radius: 2px 0 0 2px;}
.search-container button { background-color: var(--brand-blue); color: var(--white); border: none; padding: 0 30px; font-weight: 700; cursor: pointer; transition: var(--transition); font-size: 0.95rem; border-radius: 0 2px 2px 0;}

/* Dropdown de Resultados del Buscador */
.search-dropdown { position: absolute; top: calc(100% + 2px); left: -2px; right: -2px; background: #fff; border: 2px solid var(--brand-blue); border-top: none; border-radius: 0 0 6px 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); z-index: 2000; max-height: 350px; overflow-y: auto; display: none; }
.search-dropdown-item { display: flex; align-items: center; padding: 12px 15px; text-decoration: none; border-bottom: 1px solid #f0f4f8; transition: var(--transition); }
.search-dropdown-item:hover { background-color: var(--bg-light); }
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item img { width: 45px; height: 45px; object-fit: contain; margin-right: 15px; border-radius: 4px; background: #f4f6f8;}
.search-dropdown-item div { display: flex; flex-direction: column; }
.search-item-title { font-weight: 700; font-size: 0.9rem; color: var(--brand-blue); line-height: 1.2; margin-bottom: 3px;}
.search-item-type { font-size: 0.7rem; color: var(--brand-green); font-weight: 800; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-cta { font-size: 0.85rem !important; padding: 12px 25px !important; } 
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--brand-blue); }

.bottom-nav { 
    background-color: var(--brand-blue); 
    color: var(--white); 
    z-index: 1000; 
    position: sticky; 
    top: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nav-flex { display: flex; justify-content: space-between; align-items: stretch; height: 60px;}
.categories-btn { background-color: var(--brand-teal); color: var(--white); font-family: var(--font-heading); font-weight: 800; padding: 0 30px; display: flex; align-items: center; gap: 15px; cursor: pointer; font-size: 1.05rem; text-transform: uppercase;}
.categories-btn:hover { background-color: #2b5055; }
.nav-menu { display: flex; align-items: center; }
.nav-menu li { height: 100%; display: flex; align-items: center; }
.nav-menu a { color: var(--white); font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; padding: 0 20px; transition: color 0.3s; text-transform: uppercase; }
.nav-menu a:hover, .nav-menu a.active { color: var(--brand-green); }
.nav-phone { display: flex; align-items: center; gap: 12px; font-weight: 700; font-family: var(--font-heading); font-size: 1.05rem; }
.phone-icon { background-color: var(--brand-green); width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white);}

/* ==========================================================================
   TÍTULOS ESTANDARIZADOS PARA SECCIONES
   ========================================================================== */
.section { padding: 80px 0; }
.section-header-center, .section-header-flex { margin-bottom: 50px; }
.section-header-center h2, .section-header-flex h2 { 
    font-size: 1.6rem; 
    text-transform: uppercase; 
    margin: 0; 
    color: var(--brand-blue);
    letter-spacing: -0.5px;
}
.section-subtitle { 
    color: var(--text-light); 
    font-size: 1.1rem; 
    font-weight: 600; 
    max-width: 800px; 
    margin: 15px auto 0 auto; 
    line-height: 1.5; 
}
.divider { height: 4px; width: 60px; background-color: var(--brand-green); margin: 20px 0 0 0; }
.divider.center { margin: 20px auto 0 auto; }
.small-tag { 
    display: inline-block; 
    color: var(--brand-green); 
    font-weight: 800; 
    font-family: var(--font-heading); 
    font-size: 0.85rem; 
    margin-bottom: 10px; 
    letter-spacing: 1px; 
    text-transform: uppercase;
}

/* ==========================================================================
   HERO SLIDER (INICIO)
   ========================================================================== */
.hero-slider-section { position: relative; width: 100%; height: 75vh; min-height: 500px; overflow: hidden; z-index: 1; }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; 
    transition: opacity 0.8s ease-in-out; 
    display: flex; align-items: stretch; 
    z-index: 1; 
    background: radial-gradient(circle at 70% 50%, var(--brand-teal) 0%, var(--dark-bg) 100%); 
}
.slide.active { opacity: 1; z-index: 2; }
.slide-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 100%; }
.slide-content { flex: 1; max-width: 650px; transform: translateY(30px); opacity: 0; transition: all 0.8s ease 0.3s; z-index: 3;}
.slide.active .slide-content { transform: translateY(0); opacity: 1; }
.slide-content h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 20px; color: var(--white); text-transform: uppercase;}
.slide-content .text-accent { color: var(--brand-green); } 
.slide-content p { font-size: 1.15rem; margin-bottom: 35px; color: #d1dbe5; font-weight: 400;}

.slide-image { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    height: 100%; 
    padding-top: 0; 
    transform: translateX(50px); 
    opacity: 0; 
    transition: all 0.8s ease 0.5s; 
    position: relative;
    z-index: 2;
}
.slide.active .slide-image { transform: translateX(0); opacity: 1; }

.slide-image img { 
    width: 100%; 
    height: 100%; 
    max-height: 85vh; 
    object-fit: contain; 
    object-position: right center; 
    transform: scale(1.1); 
    transform-origin: right center; 
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.6)); 
}

.slide:nth-child(1) .slide-image { align-items: flex-start; }
.slide:nth-child(1) .slide-image img {
    object-position: right top; 
    transform-origin: right top;
    transform: scale(1.3) translateX(85px); 
}

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 55px; height: 55px; border-radius: 50%; background-color: var(--white); color: var(--brand-blue); border: none; font-size: 1.2rem; cursor: pointer; z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background-color: var(--brand-green); color: var(--white); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition); }
.dot.active, .dot:hover { background-color: var(--brand-green); transform: scale(1.2);}

/* ==========================================================================
   BANNERS DE PÁGINAS INTERNAS
   ========================================================================== */
.page-banner {
    position: relative;
    padding: 100px 0;
    color: var(--white);
    border-bottom: 4px solid var(--brand-green);
    z-index: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.page-banner.conocenos-bg { background-image: url('images/banner-industrial.jpg'); }
.page-banner.contacto-bg { background-image: url('images/banner-atencion.jpg'); }
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 28, 44, 0.85); 
    z-index: -1;
}
.page-banner h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 0; text-transform: uppercase; }

/* ==========================================================================
   SECCIONES DEL HOME
   ========================================================================== */
.features-horizontal { padding: 40px 0; background-color: var(--white); border-bottom: 1px solid #e1e8ed; }
.features-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.feature-item { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: center; padding: 15px; }
.feature-icon { width: 65px; height: 65px; border: 2px solid var(--brand-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--brand-teal); background-color: var(--white); flex-shrink: 0; }
.feature-text h4 { font-size: 1rem; color: var(--brand-blue); margin-bottom: 5px; font-weight: 800; }
.feature-text p { font-size: 0.95rem; color: var(--text-light); margin: 0; line-height: 1.3; font-weight: 600;}
.feature-divider { width: 1px; height: 70px; background-color: #e1e8ed; }

.categories-section { background-color: var(--bg-light); border-top: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed;}
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 25px; }
.cat-box { background-color: var(--white); padding: 40px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: var(--transition); text-decoration: none; border: 1px solid #e1e8ed; border-bottom: 4px solid transparent; border-radius: 6px;}
.cat-box:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-bottom-color: var(--brand-green); transform: translateY(-5px); }
.cat-box iconify-icon { font-size: 3.5rem; color: var(--brand-blue); margin-bottom: 20px; transition: var(--transition); }
.cat-box:hover iconify-icon { color: var(--brand-green); transform: scale(1.1); }
.cat-box span { font-size: 0.85rem; font-weight: 700; color: var(--brand-blue); line-height: 1.4; transition: var(--transition); margin: 0; }

.full-width-banner { background-color: var(--dark-bg); color: var(--white); padding: 0; overflow: hidden; background-image: radial-gradient(circle at center, #132b42 0%, var(--dark-bg) 100%); border-top: 4px solid var(--brand-green); border-bottom: 4px solid var(--brand-green);}
.banner-flex { display: flex; align-items: center; justify-content: space-between; gap: 50px;}
.banner-text { flex: 1; text-align: left; padding: 80px 0; } 
.banner-text h2 { color: var(--brand-green); font-size: 2rem; margin-bottom: 20px; text-transform: uppercase; }
.banner-text p { font-size: 1.2rem; margin-bottom: 35px; color: #a4b3c1; font-weight: 600;}
.banner-img { flex: 1; display: flex; align-items: center; justify-content: flex-end; height: 100%;} 
.banner-img img { max-width: 100%; max-height: 350px; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));}

.services-cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.srv-card { background: var(--white); border: 1px solid #e1e8ed; border-radius: 6px; padding: 35px 20px; text-align: center; transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center;}
.srv-card:hover { border-color: var(--brand-green); box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-3px);}
.srv-card iconify-icon { font-size: 3rem; color: var(--brand-teal); margin-bottom: 15px; transition: var(--transition);}
.srv-card:hover iconify-icon { color: var(--brand-green); transform: scale(1.1);}
.srv-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--brand-blue); line-height: 1.4; margin: 0;}

.industries-clients { background-color: var(--white); }
.industries-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;}
.ind-card { background: var(--bg-light); border: 1px solid #e1e8ed; border-radius: 6px; padding: 40px 30px; transition: var(--transition); border-top: 4px solid var(--brand-teal); display: flex; flex-direction: column; align-items: center;}
.ind-card:hover { border-top-color: var(--brand-green); box-shadow: 0 15px 30px rgba(0,0,0,0.08); transform: translateY(-5px);}
.ind-image { margin-bottom: 20px; width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; }
.ind-image img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px;}
.ind-card h3 { font-size: 1.05rem; font-weight: 900; color: var(--brand-blue); margin-bottom: 20px; text-transform: uppercase;}
.ind-card ul { text-align: left; width: 100%;}
.ind-card ul li { margin-bottom: 12px; font-size: 0.95rem; color: var(--text-dark); display: flex; align-items: flex-start; font-weight: 600;}
.ind-card ul li i { color: var(--brand-green); margin-top: 4px; margin-right: 12px; font-size: 0.9rem;}

/* MODIFICADO: Banners promocionales sin margen derecho en la imagen */
.promo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.promo-box { display: flex; align-items: center; justify-content: space-between; padding: 50px 0 50px 50px; border-radius: 8px; color: var(--white); overflow: hidden; position: relative;}
.bg-primary-box { background: linear-gradient(135deg, var(--brand-blue) 0%, var(--dark-bg) 100%); }
.bg-secondary-box { background: linear-gradient(135deg, var(--brand-teal) 0%, #1e3a3e 100%); }
.promo-text { flex: 1; z-index: 2;}
.promo-text h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 15px; line-height: 1.2;}
.promo-text p { font-size: 1rem; font-weight: 800; margin-bottom: 30px; color: #a4b3c1;}
.promo-text .small-tag { color: var(--brand-green); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px;}
.promo-img { flex: 1; display: flex; justify-content: flex-end; align-items: center;}
.promo-img img { max-width: 100%; max-height: 220px; object-fit: contain; transform: scale(1.15); transform-origin: right center; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));}
/* FIN MODIFICACIÓN */

.arrows-nav-center { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.arrows-nav-center button { background: transparent; border: 2px solid #e1e8ed; color: var(--text-dark); width: 45px; height: 45px; cursor: pointer; transition: var(--transition); border-radius: 4px; font-size: 1.1rem; }
.arrows-nav-center button:hover { background: var(--brand-blue); color: var(--white); border-color: var(--brand-blue); }

.compact-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.compact-card { background: var(--white); border: 1px solid #e1e8ed; display: flex; align-items: center; padding: 25px; transition: var(--transition); border-radius: 6px;}
.compact-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.06); border-color: var(--brand-teal); }
.compact-card img { width: 90px; height: 90px; object-fit: contain; margin-right: 25px; }
.compact-info h5 { font-size: 0.9rem; color: var(--brand-blue); margin-bottom: 8px; font-weight: 800;}
.compact-price { color: var(--brand-green); font-weight: 800; font-size: 1rem; text-transform: uppercase;}

.partners-grid-section { border-top: 1px solid #e1e8ed; border-bottom: 1px solid #e1e8ed;}
.partners-5-cols { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e1e8ed; background: var(--white); border-radius: 6px; overflow: hidden;}
.partner-box { flex: 1; padding: 35px; text-align: center; border-right: 1px solid #e1e8ed; display: flex; align-items: center; justify-content: center; height: 130px; transition: var(--transition); filter: grayscale(100%); opacity: 0.6;}
.partner-box:last-child { border-right: none; }
.partner-box:hover { filter: grayscale(0%); opacity: 1; background-color: #fafbfc;}
.partner-box img { max-width: 100%; max-height: 65px; object-fit: contain; }

.icono-svg {
          color: #004d7b; 
          transition: all 0.3s ease-in-out;
        }       
        .cat-box:hover .icono-svg {
          color: #83bc29; 
          transform: scale(1.1);
        }       
        .icono-svg .cls-1 {
          fill: currentColor; 
        }


/* ==========================================================================
   SECCIONES ESPECÍFICAS DE "CONÓCENOS"
   ========================================================================== */
.about-company-page { padding: 100px 0; }
.about-company-flex { display: flex; align-items: center; gap: 60px; }
.about-image-column, .about-text-column { flex: 1; }
.about-img-wrap { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.about-img-wrap img { width: 100%; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; box-shadow: 0 20px 40px rgba(0,0,0,0.15); position: relative; z-index: 2; object-fit: cover; aspect-ratio: 1 / 1.1; }
.blob-shape-accent { position: absolute; bottom: -15px; left: -20px; width: 250px; height: 250px; background-color: var(--brand-green); border-radius: 50% 50% 0 50%; z-index: 1; }
.about-text-column .about-title { font-size: 1.4rem; margin-bottom: 25px; line-height: 1.3; }
.about-text-column p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.7; font-weight: 400; }
.about-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
.about-check-grid li { display: flex; align-items: flex-start; font-weight: 700; color: var(--brand-blue); font-size: 0.95rem; }
.about-check-grid li i { color: var(--brand-green); margin-right: 10px; margin-top: 3px; font-size: 1.1rem; }

.about-identity { background-color: var(--bg-light); padding: 100px 0; overflow: hidden; }
.identity-modern-wrapper { display: flex; align-items: center; gap: 60px; }
.identity-intro { flex: 1; padding-right: 20px; }
.identity-intro p { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; margin-top: 20px; }
.identity-cards-modern { flex: 1.2; display: flex; flex-direction: column; gap: 30px; position: relative; }
.id-card-modern { background: var(--white); border-radius: 12px; padding: 40px; display: flex; gap: 25px; align-items: flex-start; box-shadow: 0 15px 35px rgba(0, 77, 123, 0.06); transition: var(--transition); position: relative; overflow: hidden; text-align: left; }
.id-card-modern::before { content: ''; position: absolute; left: 0; top: 0; width: 6px; height: 100%; background-color: var(--brand-green); transition: var(--transition); }
.vision-card::before { background-color: var(--brand-teal); }
.id-card-modern:hover { transform: translateX(-10px); box-shadow: 0 20px 40px rgba(0, 77, 123, 0.12); }
.id-card-modern:hover::before { width: 10px; }
.id-icon-modern { width: 70px; height: 70px; background-color: var(--bg-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mission-card .id-icon-modern iconify-icon { font-size: 2.5rem; color: var(--brand-green); }
.vision-card .id-icon-modern iconify-icon { font-size: 2.5rem; color: var(--brand-teal); }
.id-content-modern h3 { font-size: 1.2rem; color: var(--brand-blue); margin-bottom: 12px; text-transform: uppercase; }
.id-content-modern p { font-size: 0.95rem; color: var(--text-light); margin: 0; line-height: 1.6; }

/* ==========================================================================
   SECCIONES ESPECÍFICAS DE "CONTACTO"
   ========================================================================== */
.contact-cards-section { padding: 80px 0; }
.contact-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contact-info-card { background: var(--white); border-radius: 8px; padding: 40px 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid #e1e8ed; }
.contact-info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 77, 123, 0.1); border-color: var(--brand-green); }
.contact-icon-wrap { width: 70px; height: 70px; background-color: var(--brand-green); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px auto; transition: var(--transition); }
.contact-info-card:hover .contact-icon-wrap { background-color: var(--brand-teal); transform: scale(1.1); }
.contact-info-card h3 { font-size: 1.2rem; color: var(--brand-blue); margin-bottom: 15px; }
.contact-info-card p { color: var(--text-light); font-size: 0.95rem; font-weight: 600; margin-bottom: 5px; }
.map-section { width: 100%; height: 450px; overflow: hidden; line-height: 0; }
.map-section iframe { width: 100%; height: 100%; border: none; }

/* ==========================================================================
   PÁGINA DE CATEGORÍAS (GRILLA DE PRODUCTOS) - ACTUALIZADO!
   ========================================================================== */
.category-page-section { padding: 60px 0; }
.category-intro { text-align: center; color: var(--text-light); max-width: 1000px; margin: 0 auto 50px; font-size: 0.95rem; line-height: 1.6; }

/* Cambiado a Flexbox para permitir el centrado de la última fila */
.products-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
}

.product-card { 
    width: calc(25% - 22.5px); /* 4 tarjetas exactas por fila */
    display: flex; 
    flex-direction: column; 
    text-align: center; 
    text-decoration: none; 
    transition: var(--transition); 
    background: var(--white); 
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

/* Contenedor de la imagen sin padding para que abarque todo */
.product-card-img { 
    background-color: #f4f6f8; 
    padding: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
     
    overflow: hidden;
}
.product-card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Llena todo el contenedor */
    mix-blend-mode: multiply; 
}

.product-card-title { 
    background-color: var(--brand-green); 
    color: var(--white); 
    padding: 25px 15px; 
    font-weight: 800; 
    font-family: var(--font-heading); 
    font-size: 1.05rem; 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    line-height: 1.3; 
}

/* ==========================================================================
   PÁGINA DE DETALLE DE PRODUCTO - ACTUALIZADO!
   ========================================================================== */
.product-detail-section { padding: 80px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Contenedor de la imagen sin padding para que abarque todo */
.product-image-box { 
    background-color: #f4f6f8; 
    padding: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    /* height: 500px; Altura forzada para que cover funcione perfecto */
    overflow: hidden;
}
.product-image-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Llena todo el contenedor */
    mix-blend-mode: multiply;
}

.product-info-box h2 { font-size: 1.8rem; color: var(--brand-blue); margin-bottom: 25px; line-height: 1.3; }
.product-info-box p { color: var(--text-light); margin-bottom: 20px; font-size: 1rem; line-height: 1.6; }
.product-usage { font-weight: 700; color: var(--text-dark); margin-bottom: 30px; display: block; font-size: 1rem; line-height: 1.5; }
.product-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.product-actions .btn { font-size: 0.85rem; padding: 14px 25px; }
.benefits-title { font-size: 1.2rem; color: var(--text-light); margin-bottom: 15px; font-weight: 700; font-family: var(--font-heading);}
.benefits-list { list-style: none; padding: 0; margin: 0; }
.benefits-list li { padding: 12px 15px; font-size: 0.95rem; color: var(--text-light); }
.benefits-list li:nth-child(odd) { background-color: #f4f6f8; }
.benefits-list li:nth-child(even) { background-color: #ffffff; }
.benefits-list li::before { content: "\2022"; color: var(--text-dark); font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; padding-left: 15px;}

/* ==========================================================================
   PRODUCT IMAGE SLIDER (GALERÍA DE PRODUCTO)
   ========================================================================== */
.product-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.product-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.product-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.product-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-green);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.product-slider-btn:hover {
    background: var(--brand-blue);
    transform: translateY(-50%) scale(1.1);
}

.product-slider-prev { left: 20px; }
.product-slider-next { right: 20px; }



/* ==========================================================================
   FOOTER (UNIFICADO PARA TODAS LAS PÁGINAS)
   ========================================================================== */
.footer { background-color: var(--dark-bg); color: var(--white); padding: 80px 0 0 0; border-top: 4px solid var(--brand-blue);}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr; gap: 30px; margin-bottom: 60px; }
.footer-logo { height: 65px; margin-bottom: 25px; filter: brightness(0) invert(1); }
.footer-info p { color: #8a9ba8; font-size: 1rem; margin-bottom: 15px; font-weight: 600;}
.ruc-footer { font-weight: 800; color: var(--brand-green); font-family: var(--font-heading); font-size: 1.1rem;}

.footer h3 { margin-bottom: 25px; font-size: 1.1rem; color: var(--white); border-bottom: 2px solid var(--brand-teal); padding-bottom: 10px; display: inline-block; text-transform: uppercase;}

.footer-links ul, .footer-contact-info ul { list-style: none; padding: 0; }
.footer-links li, .footer-contact-info li { margin-bottom: 12px; }
.footer-links a, .footer-contact-info li { color: #8a9ba8; display: block; font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.footer-contact-info li { display: flex; align-items: flex-start; }
.footer-contact-info li i { color: var(--brand-green); margin-right: 12px; margin-top: 4px; font-size: 1rem; }
.footer-links a:hover { color: var(--brand-green); padding-left: 8px; }

.contact-form input, .contact-form textarea { width: 100%; padding: 14px; margin-bottom: 15px; border: 1px solid #1a2c3f; border-radius: 4px; font-family: var(--font-body); background-color: #132637; color: var(--white); font-weight: 600;}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-green); outline: none;}
.footer-bottom { background-color: #050d14; padding: 25px 0; font-size: 0.95rem; color: #5f7385; font-weight: 600;}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float { position: fixed; width: 65px; height: 65px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 35px; box-shadow: 2px 2px 15px rgba(0,0,0,0.2); z-index: 1000; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); color: #FFF; }

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .services-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .industries-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .compact-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .slide-content h1 { font-size: 2.5rem; } 
    .footer-grid { grid-template-columns: 1fr 1fr; } 
    .about-company-flex, .identity-modern-wrapper { gap: 40px; }
}

@media (max-width: 992px) {
    .search-container, .nav-phone, .social-icons, .header-cta { display: none; }
    .nav-menu { display: none; width: 100%; flex-direction: column; background: var(--brand-blue); position: absolute; top: 60px; left: 0; z-index: 1000;}
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .menu-toggle { display: block; }
    .categories-btn { flex: 1; justify-content: center; }
    
    .section-header-flex { flex-direction: column; gap: 20px; text-align: center;}
    .promo-grid-2 { grid-template-columns: 1fr; }
    .banner-flex { flex-direction: column; text-align: center;}
    .banner-text { padding: 40px 20px 20px; text-align: center;}
    .banner-img { justify-content: center; }
    .partners-5-cols { flex-wrap: wrap; }
    .partner-box { min-width: 33.33%; border-bottom: 1px solid #e1e8ed; }

    .about-company-flex, .identity-modern-wrapper { flex-direction: column; text-align: center; }
    .about-img-wrap { margin-bottom: 40px; }
    .blob-shape-accent { left: 50%; transform: translateX(-50%); }
    .about-check-grid { text-align: left; }
    
    .identity-intro { padding-right: 0; }
    .identity-intro .divider { margin: 20px auto; }

    /* Ajustes responsivos para Categorías y Productos */
    .product-card { width: calc(50% - 15px); } /* 2 tarjetas por fila en tablet */
    .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-image-box { height: 400px; } /* Altura un poco más pequeña en tablet */
}

@media (max-width: 768px) {
    .slider-btn { display: none; }
    .features-flex { flex-direction: column; align-items: flex-start; }
    .feature-divider { width: 100%; height: 1px; margin: 10px 0; }
    .feature-item { width: 100%; justify-content: flex-start; padding: 15px 20px; }
    
    .services-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .compact-grid-6 { grid-template-columns: 1fr; }
    .industries-cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer h3 { margin: 20px auto; }
    
    .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; font-size: 30px; }
    .about-check-grid { grid-template-columns: 1fr; }

    .id-card-modern { flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; }
    .id-card-modern::before { top: 0; left: 0; width: 100%; height: 6px; }
    .id-card-modern:hover { transform: translateY(-10px); }
    .id-card-modern:hover::before { width: 100%; height: 10px; }

    .contact-cards-grid { grid-template-columns: 1fr; }

    /* Ajustes responsivos para Categorías y Productos */
    .product-card { width: 100%; } /* 1 tarjeta por fila en celulares */
    .product-image-box { height: 300px; } /* Altura ideal para celulares */
    
    .product-actions { flex-direction: column; }
    .product-actions .btn { width: 100%; text-align: center; }
    
    /* --- RESPONSIVE HOMEBANNER (ORDEN: Menú -> Imagen -> Textos) --- */
    .hero-slider-section { height: 85vh; min-height: 550px; }
    
    .slide-inner { 
        flex-direction: column; 
        justify-content: center;
        text-align: center; 
        padding-top: 15px;
    }
    
    .slide-image { 
        order: 1; /* IMAGEN PRIMERO */
        width: 100%; 
        height: 45%; 
        align-items: flex-end; 
        justify-content: center; 
        padding-top: 0;
        margin-bottom: 15px;
    }
    
    .slide-image img { 
        object-position: center bottom; 
        transform: scale(1); 
        transform-origin: center bottom; 
        max-height: 100%; 
    }
    
    .slide-content { 
        order: 2; /* TEXTO SEGUNDO */
        width: 100%; 
        padding: 0 10px;
    }
    
    .slide-content h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .slide-content p { font-size: 1rem; margin-bottom: 25px; }
    
    /* Responsive específico Slide 1 (Mangueras cortadas) */
    .slide:nth-child(1) .slide-inner { 
        padding-top: 0 !important; /* ELIMINA EL MARGEN SUPERIOR COMPLETAMENTE */
    }
    .slide:nth-child(1) .slide-image { 
        align-items: flex-start; 
    }
    .slide:nth-child(1) .slide-image img { 
        object-position: center top; 
        transform-origin: center top; 
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .services-cards-grid { grid-template-columns: 1fr; }
}