/* ==========================================================================
   ARQUITECTURA DE ESTILOS ORIGINAL - REINTEGRACIÓN COMPLETA
   ========================================================================== */

/* GLOBALES & SCROLL */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', sans-serif; background-color: #000; color: #fff; }
body { overflow-x: hidden; }

/* NAV ORIGINAL ELEGANTE */
#navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 5%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  position: fixed; width: 100%; top: 0; z-index: 9999;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo { font-size: 22px; font-weight: 900; letter-spacing: 3px; color: #fff; }
.glasium-logo .s-inv { display: inline-block; transform: rotate(180deg); }
.nav-links { display: flex; list-style: none; gap: 35px; margin: 0; padding: 0; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: #fff; color: #000; border: none; padding: 12px 24px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.3s; }
.nav-cta:hover { background: #ccc; }
.nav-hamburger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ESTRUCTURA HERO SLIDER */
.hero { position: relative; height: 100vh; display: flex; align-items: center; padding: 0 8%; overflow: hidden; }
.hero-slider-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.bg-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.bg-item.active { opacity: 1; }

/* CUADRADO DEL HERO (+30% FIJO) */
.hero-box { position: absolute; right: 10%; top: 50%; transform: translateY(-50%); width: 182px !important; height: 182px !important; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); z-index: 30; background-color: #111; }
.hero-box-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CONTENEDOR TEXTOS PREMIUM */
.hero-content-slider { position: relative; max-width: 850px; z-index: 10; }
.slide-content { display: none; animation: fadeEffect 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.slide-content.active { display: block; }
.hero-tag { display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #ccc; margin-bottom: 25px; }
.hero-tag span { width: 24px; height: 1px; background: #fff; }

/* TIPOGRAFÍAS REQUERIDAS DEL SLIDER */
.slider-title { font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; font-size: 4.2rem; line-height: 1.1; color: #FFFFFF; margin: 0 0 25px 0; letter-spacing: -1px; }
.slider-title em { font-style: italic; font-weight: 300; }
.slider-sub { font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #9CA3AF !important; font-size: 1.15rem; line-height: 1.6; max-width: 580px; margin: 0 0 35px 0; }

.hero-btns { display: flex; gap: 20px; }
.btn-primary { background: #fff; color: #000; border: none; padding: 16px 32px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.3s; }
.btn-primary:hover { background: #ccc; }
.btn-outline { background: transparent; color: #fff; border: 1px solid #fff; padding: 16px 32px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s; }
.btn-outline:hover { background: #fff; color: #000; }

/* DOTS & STATS HERO */
.slider-dots { position: absolute; bottom: 140px; left: 8%; z-index: 40; display: flex; gap: 12px; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.dot.active { background: #fff; transform: scale(1.3); }

.hero-stats { position: absolute; bottom: 40px; left: 8%; z-index: 40; display: flex; gap: 60px; }
.stat-num { font-size: 26px; font-weight: 700; color: #fff; }
.stat-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

@keyframes fadeEffect { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* MARQUEE */
.marquee-wrap { background: #fff; color: #000; padding: 18px 0; overflow: hidden; position: relative; z-index: 50; }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: scrollMarquee 28s linear infinite; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1.5px; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ELEMENTOS COMPARTIDOS SECCIONES ORIGINALES */
section { padding: 120px 8%; position: relative; }
.section-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #888; margin-bottom: 20px; font-weight: 600; }
h2 { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; line-height: 1.2; font-weight: 700; color: #fff; }

/* NOSOTROS ORIGINAL REFINADO */
.about { display: flex; gap: 80px; align-items: center; }
.about-visual { flex: 1; }
.about-visual img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 2px; }
.about-text { flex: 1; }
.about-text h2 { margin-bottom: 25px; }
.about-text p { color: #aaa; font-size: 15px; line-height: 1.7; margin-bottom: 30px; }
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #111; border: 1px solid #222; color: #eee; padding: 6px 16px; font-size: 12px; border-radius: 50px; font-weight: 500; }

/* CATÁLOGO GRID ORIGINAL */
.categories { background: #050505; }
.categories h2 { margin-bottom: 15px; }
.section-sub { color: #888; font-size: 15px; margin-bottom: 50px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { position: relative; height: 380px; overflow: hidden; cursor: pointer; border-radius: 2px; }
.cat-img { background-size: cover; background-position: center; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.cat-card:hover .cat-img { transform: scale(1.05); }
.cat-label { font-size: 18px; font-weight: 600; color: #fff; line-height: 1.3; z-index: 2; position: relative; }
.cat-sub { font-size: 11px; color: #ccc; font-weight: 400; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.cat-arrow { position: absolute; top: 25px; right: 25px; color: #fff; font-size: 18px; opacity: 0; transform: translateX(-10px); transition: all 0.3s; z-index: 2; }
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(0); }

/* PRODUCTOS DESTACADOS ORIGINAL REFINADO */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 50px; }
.prod-card { background: #050505; border: 1px solid #111; padding: 20px; display: flex; flex-direction: column; transition: border-color 0.3s; }
.prod-card:hover { border-color: #333; }
.prod-img { background-size: cover; background-position: center; width: 100%; border-radius: 1px; }
.prod-name { font-size: 16px; font-weight: 600; color: #fff; margin: 20px 0 10px 0; }
.prod-desc { font-size: 13px; color: #777; line-height: 1.5; flex-grow: 1; margin-bottom: 20px; }
.prod-cta { font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: color 0.3s; width: max-content; }
.prod-card:hover .prod-cta { color: #aaa; }

/* SOSTENIBILIDAD & ASG ORIGINAL (PEQUEÑO Y ELEGANTE) */
.sustain { background: #000; display: flex; gap: 80px; align-items: center; border-top: 1px solid #111; }
.sustain-content { flex: 1.3; }
.sustain-content h2 { margin-bottom: 25px; }
.sustain-content p { color: #aaa; font-size: 15px; line-height: 1.7; margin-bottom: 40px; }
.sustain-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.pillar-icon { font-size: 20px; margin-bottom: 12px; }
.pillar-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.pillar-text { font-size: 13px; color: #666; line-height: 1.6; }
.sustain-stat { flex: 0.7; background: #050505; border: 1px solid #111; padding: 45px; border-radius: 2px; text-align: center; }
.sustain-num { font-size: 13px; font-weight: 700; letter-spacing: 4px; color: #444; text-transform: uppercase; margin-bottom: 15px; }
.sustain-box { border-top: 1px solid #1a1a1a; padding-top: 25px; }
.sustain-pct { font-size: 56px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 15px; letter-spacing: -2px; }
.sustain-desc { font-size: 12px; color: #555; line-height: 1.6; }

/* TESTIMONIOS ORIGINAL */
.testimonials { background: #050505; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 50px; }
.testi-card { background: #000; border: 1px solid #111; padding: 35px; border-radius: 2px; }
.testi-stars { color: #fff; font-size: 12px; margin-bottom: 20px; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: #999; line-height: 1.6.5; margin-bottom: 25px; font-style: italic; }
.testi-author { font-size: 14px; font-weight: 600; color: #fff; }
.testi-company { font-size: 11px; color: #555; margin-top: 4px; }

/* CTA BAND ORIGINAL REFINADO */
.cta-band { background: #fff; color: #000; padding: 80px 8%; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-text h2 { color: #000; font-size: 2.4rem; }
.cta-text p { color: #444; font-size: 15px; max-width: 600px; margin-top: 15px; line-height: 1.6; }
.btn-dark { background: #000; color: #fff; border: none; padding: 18px 36px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; white-space: nowrap; transition: background 0.3s; }
.btn-dark:hover { background: #222; }

/* FOOTER CUATRO COLUMNAS ORIGINAL (RESTAURADO CON FORMATO) */
footer { background: #000; border-top: 1px solid #111; padding: 80px 8% 30px 8%; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-brand .glasium-logo { font-size: 24px; font-weight: 900; display: inline-block; margin-bottom: 20px; }
.footer-brand p { color: #555; font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 25px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #666; text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #111; padding-top: 30px; display: flex; justify-content: space-between; font-size: 12px; color: #444; }

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25D366; color: #FFFFFF !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25); z-index: 99999; transition: transform 0.3s ease, background-color 0.3s ease; text-decoration: none; box-sizing: border-box; }
.whatsapp-float:hover { background-color: #20ba5a; transform: scale(1.08); }
.whatsapp-float svg { width: 34px; height: 34px; display: block; fill: #FFFFFF; }

/* INTERFAZ RESPONSIVE RIGUROSA */
@media (max-width: 1024px) {
  .slider-title { font-size: 3rem; }
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero-box, .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .about, .sustain, .cta-band { flex-direction: column; text-align: center; gap: 40px; }
  .sustain-pillars { grid-template-columns: 1fr; }
  .cat-grid, .prod-grid, .testi-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}