/* ==========================================================================
           VARIABLES GLOBALES
           ========================================================================== */
        :root {
            --brand-green: #2ecc71;
            --brand-green-hover: #27ae60;
            --wa-color: #25D366;
            --wa-hover: #128C7E;
            --dark-bg: #1a1a1a;
            --text-dark: #2d3748;
            --text-muted: #718096;
            --text-strong: #0f172a;
            --bg-light: #ffffff;
            --bg-body: #f3f4f6;
            --bg-gray: #f8fafc;
            --border-color: #e2e8f0;
            
            --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-pill: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
            --shadow-drawer: -5px 0 25px rgba(0,0,0,0.15);
            --shadow-cards: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
            --shadow-float: 0 8px 25px rgba(37, 211, 102, 0.4);
            --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
            --shadow-custom: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
            
            --glass-bg: rgba(25, 30, 38, 0.65);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-highlight: rgba(255, 255, 255, 0.15);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
        body { background-color: var(--bg-body); color: var(--text-dark); overflow-x: hidden; }
        .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

        /* ==========================================================================
           ANIMACIONES GLOBALES DE ENTRADA (SCROLL REVEAL)
           ========================================================================== */
        .reveal-section {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .reveal-section.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* ==========================================================================
           1. TOP BAR
           ========================================================================== */
        .top-bar { background-color: var(--dark-bg); color: #fff; padding: 10px 0; font-size: 13px; }
        .top-bar-inner { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
        .top-bar a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: var(--transition-smooth); }
        .top-bar a i { color: var(--brand-green); }
        .top-bar a:hover { color: var(--brand-green); }

        /* ==========================================================================
           2. HEADER ISLA FLOTANTE (Con logo sincronizado)
           ========================================================================== */
        .header-wrapper { position: sticky; top: 20px; z-index: 900; padding: 0 20px; margin-top: 20px; }
        .main-header {
            background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
            border-radius: 50px; padding: 0 30px; box-shadow: var(--shadow-pill); border: 1px solid rgba(0,0,0,0.05);
        }
        .nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
        
        .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
        .logo img { max-height: 45px; width: auto; display: block; }

        .main-nav { height: 100%; }
        .main-nav ul { display: flex; list-style: none; height: 100%; gap: 5px; }
        .main-nav > ul > li { height: 100%; display: flex; align-items: center; position: relative; }
        .main-nav > ul > li > a {
            padding: 10px 15px; text-decoration: none; color: var(--text-dark);
            font-weight: 600; font-size: 14px; border-radius: 30px; transition: var(--transition-smooth);
            display: flex; align-items: center; gap: 6px;
        }
        .main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { background: rgba(46, 204, 113, 0.1); color: var(--brand-green); }

        .mega-menu {
            position: absolute; top: calc(100% + 10px); left: -150px; width: 800px;
            background: var(--bg-light); border-radius: 20px; padding: 30px;
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid var(--border-color);
            opacity: 0; visibility: hidden; transform: translateY(15px); transition: var(--transition-smooth); pointer-events: none;
        }
        .has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
        .has-mega::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 30px; }

        .mega-col h3 {
            font-size: 13px; color: var(--text-dark); margin-bottom: 15px; text-transform: uppercase;
            display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px;
        }
        .mega-col h3 i { color: var(--brand-green); font-size: 16px; }
        .mega-col ul { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
        .mega-col ul a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: var(--transition-smooth); }
        .mega-col ul a:hover { color: var(--brand-green); transform: translateX(5px); }

        .header-actions { display: flex; align-items: center; gap: 15px; }
        .btn-whatsapp-header {
            background-color: var(--brand-green); color: #fff; padding: 10px 20px; border-radius: 30px;
            text-decoration: none; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; transition: var(--transition-smooth);
        }
        .btn-whatsapp-header:hover { background-color: var(--brand-green-hover); transform: translateY(-2px); }

        .cart-btn {
            position: relative; color: var(--text-dark); font-size: 20px; width: 45px; height: 45px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; background: transparent; transition: var(--transition-smooth);
        }
        .cart-btn:hover { background: rgba(46, 204, 113, 0.1); color: var(--brand-green); }
        .cart-badge {
            position: absolute; top: 2px; right: 0; background-color: #ef4444; color: white;
            font-size: 11px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%;
            display: flex; justify-content: center; align-items: center; border: 2px solid #fff;
        }
        .menu-toggle { display: none; font-size: 24px; color: var(--text-dark); cursor: pointer; background: none; border: none; padding: 5px; }

        /* ==========================================================================
           3. DRAWERS (CARRITO Y MENÚ MÓVIL)
           ========================================================================== */
        .overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5);
            backdrop-filter: blur(3px); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition-smooth);
        }
        .overlay.active { opacity: 1; visibility: visible; }

        .cart-drawer {
            position: fixed; top: 0; right: -400px; width: 400px; max-width: 100%; height: 100vh;
            background: #fff; z-index: 1001; box-shadow: var(--shadow-drawer); display: flex; flex-direction: column; transition: var(--transition-smooth);
        }
        .cart-drawer.active { right: 0; }
        .cart-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); }
        .cart-header h2 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
        .close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }
        .close-btn:hover { color: #ef4444; }
        .cart-body { flex: 1; overflow-y: auto; padding: 20px; }
        .cart-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
        .cart-item-img {
            width: 80px; height: 80px; background: var(--bg-body); border-radius: 8px;
            display: flex; justify-content: center; align-items: center; color: var(--text-muted); font-size: 24px;
        }
        .cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
        .cart-item-title { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; }
        .cart-item-price { font-size: 15px; font-weight: 700; color: var(--brand-green); }
        .cart-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
        .qty-btn { background: var(--bg-body); border: none; width: 25px; height: 25px; border-radius: 4px; cursor: pointer; }
        .cart-remove { color: #ef4444; font-size: 13px; text-decoration: none; margin-left: auto; }
        .cart-footer { padding: 20px; border-top: 1px solid var(--border-color); background: #fafafa; }
        .cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
        .btn-checkout {
            display: block; width: 100%; text-align: center; background: var(--brand-green); color: #fff;
            padding: 15px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: var(--transition-smooth);
        }
        .btn-checkout:hover { background: var(--brand-green-hover); }

        .mobile-menu-drawer {
            position: fixed; top: 0; left: -300px; width: 300px; height: 100vh; background: #fff;
            z-index: 1001; box-shadow: 5px 0 25px rgba(0,0,0,0.1); transition: var(--transition-smooth); padding: 20px; overflow-y: auto;
        }
        .mobile-menu-drawer.active { left: 0; }
        .mobile-menu-header { display: flex; justify-content: space-between; margin-bottom: 30px; }
        .mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
        .mobile-nav a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 16px; display: block; }
        .mobile-nav .sub-menu { margin-top: 10px; padding-left: 15px; display: none; border-left: 2px solid var(--brand-green); }
        .mobile-nav .has-mobile-sub.open .sub-menu { display: block; }
        .mobile-nav .sub-menu a { font-size: 14px; color: var(--text-muted); font-weight: 400; padding: 8px 0; }

        /* ==========================================================================
           4. HERO SECTION
           ========================================================================== */
        .hero-clinico {
            position: relative; min-height: 85vh; display: flex; align-items: center;
            --hero-image: url('https://acrilicospictografica.cl/wp-content/uploads/2022/01/corte-metales-laser-fabricacion-estructuras-metalicas-piezas-metal-jpalacios.jpg');
            background: #10151b; overflow: hidden;
        }
        .hero-clinico::after {
            content: ''; position: absolute; inset: -3%; z-index: 0;
            background-image: var(--hero-image); background-size: cover; background-position: center; background-repeat: no-repeat;
            transform: scale(1.03); animation: apHeroFocus 14s ease-out both; will-change: transform;
        }
        .hero-clinico::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(90deg, rgba(12, 18, 24, 0.72) 0%, rgba(12, 18, 24, 0.42) 43%, rgba(12, 18, 24, 0.04) 100%);
            z-index: 1;
        }
        @keyframes apHeroFocus { from { transform: scale(1.03); } to { transform: scale(1.1); } }
        .hero-content { position: relative; z-index: 2; }
        .hero-text-box { max-width: 650px; padding-top: 40px; }
        .hero-clinico h1 {
            color: #ffffff; font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; text-wrap: balance; letter-spacing: -1px;
        }
        .hero-clinico h1 span { color: var(--brand-green); }
        .hero-clinico p {
            color: #e2e8f0; font-size: 1.125rem; line-height: 1.6; margin-bottom: 40px; text-wrap: balance; max-width: 90%;
        }
        .btn-primary {
            display: inline-flex; align-items: center; gap: 12px; background-color: var(--brand-green); color: #fff;
            padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 15px;
            transition: var(--transition-smooth); box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
        }
        .btn-primary i { font-size: 14px; transition: transform 0.3s ease; }
        .btn-primary:hover { background-color: var(--brand-green-hover); transform: translateY(-3px); }
        .btn-primary:hover i { transform: translateX(5px); }

        /* ==========================================================================
           5. SECCIONES INSTITUCIONALES
           ========================================================================== */
        .why-us-section { background-color: var(--bg-white); padding: 120px 0; position: relative; overflow: hidden; }
        .why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
        .why-us-title h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; text-wrap: balance; letter-spacing: -1px; color: var(--text-strong); }
        .why-us-title h2 span { color: var(--brand-green); display: block; }
        .why-us-content p { font-size: 1.125rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; text-wrap: balance; }
        .why-us-content strong { color: var(--text-strong); font-weight: 700; }

        .chilecompra-banner {
            margin-top: 50px; background: #f8fafc; border: 1px solid var(--border-color); border-radius: 16px;
            padding: 30px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.03); transition: var(--transition-smooth); position: relative; z-index: 2;
        }
        .chilecompra-banner:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
        .chilecompra-text h4 { color: var(--text-strong); font-size: 1.25rem; font-weight: 800; margin-bottom: 5px; }
        .chilecompra-text p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
        .chilecompra-banner img { max-height: 60px; width: auto; object-fit: contain; }

        .modular-section { background-color: #f8fafc; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--border-color); }
        .modular-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
        .modular-text h3 {
            color: var(--brand-green); text-transform: uppercase; font-weight: 800; letter-spacing: 2px;
            font-size: 0.9rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px;
        }
        .modular-text h3::before { content: ''; width: 40px; height: 2px; background-color: var(--brand-green); }
        .modular-text h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; color: var(--text-strong); line-height: 1.2; margin-bottom: 24px; text-wrap: balance; }
        .modular-text p { font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; text-wrap: balance; }

        .modular-media { position: relative; height: 600px; display: flex; justify-content: center; align-items: center; }
        .video-card {
            border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
            background-color: #000; border: 6px solid #f8fafc; transition: var(--transition-smooth);
        }
        .video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
        .video-main { position: absolute; left: 0; top: 0; width: 65%; height: 80%; z-index: 1; }
        .video-overlap { position: absolute; right: 0; bottom: 0; width: 55%; height: 70%; z-index: 2; box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.15); }
        .video-card:hover { transform: scale(1.02); z-index: 3; }

        /* ==========================================================================
           6. CALIDAD DEL PRODUCTO (NUEVO FONDO ELEGANTE Y TEXTURIZADO)
           ========================================================================== */
        .quality-section {
            position: relative; 
            padding: 130px 0;
            /* Nuevo fondo moderno: Patrón técnico sutil + degradado profundo tono industrial/tecnológico */
            background-color: #0f141c;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(46, 204, 113, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(41, 128, 185, 0.06) 0%, transparent 40%),
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
            overflow: hidden;
            border-top: 1px solid rgba(255,255,255,0.05);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .quality-header { text-align: center; max-width: 800px; margin: 0 auto 70px auto; position: relative; z-index: 2; }
        .quality-header h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; color: #fff; margin-bottom: 20px; }
        .quality-header h2 span { color: var(--brand-green); }
        .quality-header p { font-size: 1.2rem; color: #94a3b8; text-wrap: balance; }
        
        .quality-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; position: relative; z-index: 2; }
        
        .glass-card {
            flex: 1 1 300px; max-width: 380px; 
            background: var(--glass-bg); 
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border); 
            border-top: 1px solid var(--glass-highlight); 
            border-left: 1px solid var(--glass-highlight);
            border-radius: 24px; padding: 40px 30px; 
            transition: var(--transition-smooth); 
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); 
            text-align: center;
        }
        .glass-card:hover { transform: translateY(-10px); border-color: rgba(46, 204, 113, 0.4); box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 25px rgba(46,204,113,0.1); }
        
        .glass-icon {
            width: 70px; height: 70px; margin: 0 auto 25px auto; 
            background: rgba(46, 204, 113, 0.15);
            border: 1px solid rgba(46, 204, 113, 0.3); 
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 26px; color: var(--brand-green); transition: var(--transition-smooth);
        }
        .glass-card:hover .glass-icon { background: var(--brand-green); color: #fff; transform: scale(1.1); }
        .glass-card h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 15px; }
        .glass-card p { font-size: 1rem; color: #94a3b8; line-height: 1.6; text-wrap: balance; }

        /* ==========================================================================
           7. CATEGORÍAS DE PRODUCTOS
           ========================================================================== */
        .categories-section { padding: 80px 0; background-color: var(--bg-body); }
        .categories-section .section-header { text-align: center; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
        .categories-section .section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 15px; text-wrap: balance; }
        .categories-section .section-header h2 span { color: var(--brand-green); }
        .categories-section .section-header p { font-size: 1.1rem; color: var(--text-muted); text-wrap: balance; }

        .categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
        .compact-cat-card {
            position: relative; isolation: isolate; aspect-ratio: 1 / 1;
            background-color: #0f141c; border-radius: 20px; overflow: hidden; text-decoration: none;
            box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,0.08);
            display: block; transition: var(--transition-smooth); width: 100%;
        }
        .compact-cat-card::after {
            content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
            background-image:
                linear-gradient(to top, rgba(15,20,28,.72) 0%, rgba(15,20,28,.08) 55%, transparent 78%),
                linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
            background-size: 100% 100%, 40px 40px, 40px 40px;
        }
        .compact-cat-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); border-color: rgba(46, 204, 113, 0.45); }
        .img-placeholder {
            position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
            background-color: #0f141c; display: flex; align-items: center; justify-content: center;
            color: #94a3b8; font-size: 14px; font-weight: 500; transition: var(--transition-smooth);
        }
        .img-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .6s ease; }
        .img-placeholder i { font-size: 28px; margin-bottom: 8px; opacity: 0.7; }
        .compact-cat-card:hover .img-placeholder img { transform: scale(1.045); }
        .cat-info {
            position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
            padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
            background: rgba(15,20,28,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,.14); border-radius: 15px;
            box-shadow: 0 12px 30px rgba(0,0,0,.28);
        }
        .cat-info h3 { color: #fff; font-size: 1.05rem; font-weight: 750; margin: 0; text-wrap: balance; line-height: 1.25; transition: color 0.3s; }
        .compact-cat-card:hover .cat-info h3 { color: #fff; }
        .cat-link { display: inline-flex; flex: none; align-items: center; gap: 6px; color: #fff; background: var(--brand-green); border-radius: 999px; padding: 9px 12px; font-size: 0.78rem; font-weight: 750; transition: var(--transition-smooth); }
        .cat-link i { font-size: 0.8rem; transition: transform 0.3s; }
        .compact-cat-card:hover .cat-link { color: #fff; background: var(--brand-green-hover); }
        .compact-cat-card:hover .cat-link i { transform: translateX(4px); }

        /* ==========================================================================
           8. FABRICACIÓN A MEDIDA
           ========================================================================== */
        .custom-fabrication-section { padding: 80px 0; background-color: var(--bg-body); position: relative; }
        .custom-card-wrapper {
            background-color: var(--bg-card); border: 1px solid var(--border-light); border-radius: 32px;
            padding: 60px 80px; box-shadow: var(--shadow-custom); position: relative; overflow: hidden; transition: var(--transition-smooth);
        }
        .custom-card-wrapper::before {
            content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(46,204,113,0.1) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; pointer-events: none;
        }
        .custom-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
        .custom-text-content h2 {
            font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 800; color: var(--text-dark); line-height: 1.15;
            margin-bottom: 20px; letter-spacing: -1px; text-wrap: balance;
        }
        .custom-text-content h2 span { color: var(--brand-green); }
        .custom-text-content p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; text-wrap: balance; }
        .custom-cta-box {
            background-color: #f8fafc; border: 1px solid var(--border-light); border-radius: 20px;
            padding: 35px; display: flex; flex-direction: column; gap: 20px; text-align: center; position: relative; overflow: hidden;
        }
        .custom-cta-box h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); text-wrap: balance; }
        .custom-cta-box p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; text-wrap: balance; }
        
        .btn-custom-quote {
            display: inline-flex; align-items: center; justify-content: center; gap: 12px; background-color: var(--wa-color);
            color: #fff; padding: 16px 28px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1rem;
            position: relative; overflow: hidden; transition: var(--transition-smooth); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
            animation: ctaPulse 2.5s infinite;
        }
        @keyframes ctaPulse {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
            50% { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
        }
        .btn-custom-quote::after {
            content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
            background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
            transform: translateX(-100%); animation: shineEffect 4s infinite;
        }
        @keyframes shineEffect {
            0% { transform: translateX(-100%); }
            20% { transform: translateX(100%); }
            100% { transform: translateX(100%); }
        }
        .btn-custom-quote i { font-size: 1.2rem; transition: transform 0.3s ease; }
        .btn-custom-quote:hover { background-color: #128C7E; transform: translateY(-3px) scale(1.02); box-shadow: 0 25px 50px -12px rgba(37, 211, 102, 0.3); animation: none; }
        .btn-custom-quote:hover i { transform: scale(1.2) rotate(10deg); }

        /* ==========================================================================
           9. PACTO DE INTEGRIDAD
           ========================================================================== */
        .integrity-section { padding: 80px 0 120px 0; background-color: var(--bg-body); position: relative; }
        .integrity-card-wrapper {
            background-color: var(--bg-card); border: 1px solid var(--border-light); border-radius: 32px;
            padding: 60px 80px; box-shadow: var(--shadow-custom); position: relative; overflow: hidden; transition: var(--transition-smooth);
        }
        .integrity-card-wrapper::before {
            content: ''; position: absolute; bottom: -50px; left: -50px; width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(46,204,113,0.08) 0%, rgba(255,255,255,0) 70%); border-radius: 50%; pointer-events: none;
        }
        .integrity-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
        .integrity-text-content h2 {
            font-size: clamp(2.2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--text-dark); line-height: 1.15;
            margin-bottom: 20px; letter-spacing: -1px; text-wrap: balance;
        }
        .integrity-text-content h2 span { color: var(--brand-green); }
        .integrity-text-content p { font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; text-wrap: balance; margin-bottom: 30px; }
        .integrity-badge {
            display: inline-flex; align-items: center; gap: 10px; background: rgba(46, 204, 113, 0.1); color: var(--brand-green);
            padding: 8px 16px; border-radius: 30px; font-size: 0.9rem; font-weight: 700; border: 1px solid rgba(46, 204, 113, 0.2);
        }
        .integrity-flip-container {
            background-color: #f8fafc; border: 1px solid var(--border-light); border-radius: 20px;
            padding: 30px; display: flex; justify-content: center; align-items: center; box-shadow: 0 25px 50px -12px rgba(46, 204, 113, 0.15);
            position: relative; min-height: 350px; transition: var(--transition-smooth);
        }
        .integrity-flip-container:hover { border-color: rgba(46, 204, 113, 0.4); transform: translateY(-3px); }
        .flipbook-shortcode-wrapper { width: 100%; text-align: center; }

        /* ==========================================================================
           10. FOOTER Y WHATSAPP FLOTANTE
           ========================================================================== */
        .pre-footer { position: relative; z-index: 10; margin-bottom: -50px; }
        .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
        .contact-card {
            background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
            border: 1px solid rgba(0,0,0,0.05); padding: 30px 20px; border-radius: 20px;
            text-align: center; box-shadow: var(--shadow-cards); transition: var(--transition-smooth);
        }
        .contact-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px -10px rgba(46, 204, 113, 0.2); }
        .contact-card i { font-size: 32px; color: var(--brand-green); margin-bottom: 15px; }
        .contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); text-wrap: balance; }
        .contact-card p, .contact-card a { font-size: 14px; color: var(--text-muted); text-decoration: none; line-height: 1.5; text-wrap: balance; transition: var(--transition-smooth); }
        .contact-card a:hover { color: var(--brand-green); }

        .site-footer { background-color: var(--bg-light); padding: 100px 0 90px; border-top: 1px solid var(--border-color); }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
        .footer-brand .footer-logo { max-width: 220px; height: auto; margin-bottom: 20px; display: block; }
        .footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; max-width: 350px; text-wrap: balance; }
        .social-links { display: flex; gap: 15px; }
        .social-links a {
            display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
            background: var(--bg-body); color: var(--text-dark); border-radius: 50%; text-decoration: none; font-size: 16px; transition: var(--transition-smooth);
        }
        .social-links a:hover { background: var(--brand-green); color: #fff; transform: translateY(-3px); }

        .footer-widget h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; text-wrap: balance; }
        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a {
            color: var(--text-muted); text-decoration: none; font-size: 14px;
            transition: var(--transition-smooth); display: inline-flex; align-items: center; gap: 8px; text-wrap: balance;
        }
        .footer-links a::before {
            content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
            font-size: 10px; color: var(--brand-green); opacity: 0; transform: translateX(-10px); transition: var(--transition-smooth);
        }
        .footer-links a:hover { color: var(--brand-green); transform: translateX(5px); }
        .footer-links a:hover::before { opacity: 1; transform: translateX(0); }

        .payment-methods { background: var(--bg-body); padding: 20px; border-radius: 12px; text-align: center; }
        .payment-methods h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; text-wrap: balance; }
        .payment-icons { display: flex; justify-content: center; align-items: center; gap: 10px; }
        .payment-icons svg { height: 24px; width: auto; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); background: #fff; padding: 2px 4px; }
        .webpay-badge {
            background: #fff; border-radius: 4px; padding: 4px 8px; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 10px; width: 100%;
        }

        .sub-footer {
            border-top: 1px solid var(--border-color); padding-top: 25px;
            display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-right: 90px; 
        }
        .copyright { font-size: 13px; color: var(--text-muted); text-wrap: balance; }
        .copyright strong { color: var(--text-dark); font-weight: 600; }
        .developer-credit { font-size: 13px; color: var(--text-muted); text-wrap: balance; }
        .developer-credit a { color: var(--brand-green); font-weight: 700; text-decoration: none; transition: var(--transition-smooth); }
        .developer-credit a:hover { color: var(--brand-green-hover); }

        .whatsapp-float-container {
            position: fixed; bottom: 30px; right: 30px; display: flex; align-items: center; gap: 12px; z-index: 1000; text-decoration: none;
        }
        .whatsapp-label {
            background-color: #fff; color: var(--text-dark); padding: 8px 16px; border-radius: 20px;
            font-size: 13px; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            opacity: 0; transform: translateX(10px); transition: var(--transition-smooth); pointer-events: none; 
        }
        .whatsapp-float-container:hover .whatsapp-label { opacity: 1; transform: translateX(0); }
        .whatsapp-btn {
            width: 60px; height: 60px; background-color: var(--wa-color); color: #fff; border-radius: 50%;
            display: flex; justify-content: center; align-items: center; font-size: 32px; box-shadow: var(--shadow-float); transition: var(--transition-smooth);
        }
        .whatsapp-float-container:hover .whatsapp-btn { background-color: var(--wa-hover); transform: scale(1.05); }

        /* ==========================================================================
           RESPONSIVE GENERAL
           ========================================================================== */
        @media (max-width: 1024px) {
            .categories-grid { grid-template-columns: repeat(2, 1fr); }
            .compact-cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); justify-self: center; }
            .why-us-grid, .modular-grid, .custom-grid, .integrity-grid { grid-template-columns: 1fr; gap: 50px; }
            .chilecompra-banner { flex-direction: column; text-align: center; }
            .contact-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
            .whatsapp-label { opacity: 1; transform: none; }
        }

        @media (max-width: 768px) {
            .main-nav, .btn-whatsapp-header { display: none; }
            .menu-toggle { display: block; }
            .header-wrapper { padding: 0 10px; }
            .main-header { padding: 0 20px; border-radius: 20px; }
            
            .hero-clinico { min-height: 70vh; text-align: center; }
            .hero-clinico::after { background-position: center 58%; animation-duration: 12s; }
            .hero-clinico::before { background: linear-gradient(to bottom, rgba(8,13,20,.46) 0%, rgba(8,13,20,.62) 58%, rgba(8,13,20,.76) 100%); }
            .hero-text-box { padding-top: 20px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
            .hero-clinico h1 { font-size: 2.2rem; }
            .hero-clinico p { font-size: 1rem; max-width: 100%; }
            .btn-primary { width: 100%; justify-content: center; }

            .modular-media { height: auto; display: flex; flex-direction: column; gap: 20px; }
            .video-main, .video-overlap { position: static; width: 100%; height: auto; aspect-ratio: 9/16; border: none; border-radius: 16px; }

            .quality-section { padding: 80px 0; }
            .glass-card { flex-basis: 100%; max-width: 100%; }

            .categories-section { padding: 50px 0; }
            .container { padding: 0 15px; } 
            .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
            .compact-cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 7.5px); justify-self: center; }
            .img-placeholder { height: 100%; }
            .img-placeholder i { font-size: 20px; }
            .img-placeholder span { font-size: 11px; }
            .cat-info { left: 10px; right: 10px; bottom: 10px; padding: 11px; flex-direction: column; align-items: stretch; gap: 8px; border-radius: 12px; }
            .cat-info h3 { font-size: 0.86rem; margin: 0; }
            .cat-link { justify-content: center; padding: 7px 9px; font-size: 0.72rem; }

            .custom-card-wrapper, .integrity-card-wrapper { padding: 35px 20px; border-radius: 24px; }
            .custom-text-content h2, .integrity-text-content h2 { font-size: 2rem; }
            .custom-cta-box { padding: 25px 20px; }
            .integrity-flip-container { padding: 20px; min-height: 280px; }

            .contact-grid { grid-template-columns: 1fr; gap: 20px; }
            .pre-footer { margin-bottom: -30px; }
            .site-footer { padding: 60px 0 100px 0; }
            .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
            .footer-brand .footer-logo { margin: 0 auto 20px auto; }
            .footer-brand p { margin: 0 auto 25px; }
            .social-links { justify-content: center; }
            .footer-links a { justify-content: center; }
            .footer-links a::before { display: none; }
            .sub-footer { flex-direction: column; text-align: center; padding-right: 0; gap: 10px; }
            .whatsapp-float-container { bottom: 20px; right: 20px; }
            .whatsapp-btn { width: 50px; height: 50px; font-size: 28px; }
        }
