/* ==========================================================================
   PULSOTEK - SISTEMA DE DISEÑO UNIFICADO 2025
   ========================================================================== */

:root {
    /* Colores Principales */
    --primary: #0077ff;
    --primary-dark: #005fcc;
    --primary-light: #d6e9ff;
    --secondary: #1e293b;
    --secondary-light: #f1f5f9;
    
    /* Colores de Acento por Módulo */
    --gym-accent: #fdc108;
    --turnos-accent: #06b6a4;
    --auto-accent: #0077ff;
    --crm-accent: #ff6d3a;
    --alqui-accent: #8b5cf6;
    
    /* Semántica y Texto */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --color-principal: var(--primary); /* Alias para compatibilidad */
    
    /* Estructura */
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 10px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    
    /* Tipografía */
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --line-height-tight: 1.1;
    --line-height-normal: 1.6;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Poppins', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background-color: #005fcc0d; color: var(--text-main); line-height: var(--line-height-normal); overflow-x: hidden; }
a { text-decoration: none; color: inherit; cursor: pointer; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }
.section-padding { padding: var(--spacing-xl) 0 80px 0; }
.section-title { font-size: var(--font-size-h2); font-weight: 800; text-align: center; margin-bottom: var(--spacing-md); letter-spacing: -0.02em; color: var(--secondary); }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: var(--font-size-lg); max-width: 700px; margin: 0 auto var(--spacing-xl) auto; }

/* ==========================================================================
   NAVEGACIÓN (HEADER)
   ========================================================================== */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05); padding: var(--spacing-md) 0;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

/* Logo */
.logo { font-size: var(--font-size-xl); font-weight: 800; display: flex; align-items: center; gap: var(--spacing-sm); color: var(--secondary); }
.logo-icon { width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: var(--font-size-lg); }
.logo-text-pulse { color: var(--primary); }

/* Menú */
.nav-links { display: flex; gap: var(--spacing-lg); align-items: center; }
.nav-links a { font-weight: 500; color: var(--text-muted); padding: var(--spacing-sm) 0; }
.nav-links a:hover { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; padding: 10px 0; }
.dropdown-trigger { font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.dropdown:hover .dropdown-trigger { color: var(--primary); }
.dropdown-content {
    position: absolute; top: 100%; left: 0;
    background: white; min-width: 220px;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color); padding: 12px 0;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content li a { display: block; padding: 10px 20px; font-size: 0.9rem; font-weight: 500; color: var(--text-main); }
.dropdown-content li a:hover { background: var(--bg-light); color: var(--primary); }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-sm);
    padding: 12px 24px; border-radius: var(--radius); font-weight: 600; cursor: pointer; 
    transition: var(--transition); border: none; outline: none; font-size: var(--font-size-base);
}
.btn-header { background: var(--primary); color: white; border-radius: var(--radius); font-weight: 700; box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3); }
.btn-header:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }

.btn-secondary { background: var(--bg-white); border: 1px solid var(--border-color); color: var(--text-main); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: white !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   HERO & TYPEWRITER
   ========================================================================== */
.hero { padding: 120px 0 100px 0; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-white) 0%, var(--primary-light) 100%); text-align: center; }
.hero-content { max-width: 100%; margin: 0 auto; }
.hero-content h1 { font-size: var(--font-size-h1); line-height: var(--line-height-tight); font-weight: 800; margin-bottom: var(--spacing-md); color: var(--secondary); letter-spacing: -0.04em; }
.hero-content p { font-size: 1.35rem; color: var(--text-muted); margin-bottom: var(--spacing-xl); max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: var(--spacing-md); justify-content: center; }

.typewriter-text { color: var(--primary); font-weight: 800; }
.cursor { display: inline-block; width: 3px; background-color: var(--text-main); animation: blink 1s infinite; margin-left: 2px; height: 1em; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ==========================================================================
   ESTADÍSTICAS
   ========================================================================== */
.stats-bar { background: var(--secondary); padding: var(--spacing-lg) 0; color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: var(--spacing-md); }
.stat-item h3 { font-size: var(--font-size-h3); color: var(--primary-light); font-weight: 700; }
.stat-item p { color: #94a3b8; font-size: var(--font-size-sm); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   PRODUCT CARDS & REVEAL
   ========================================================================== */
.product-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px; align-items: center; padding: var(--spacing-xl) 0; overflow: hidden; }
.product-card-grid:nth-child(even) { direction: rtl; } 
.product-card-grid:nth-child(even) .product-content { direction: ltr; }

.product-content h3 { font-size: var(--font-size-h2); margin: var(--spacing-sm) 0 var(--spacing-md) 0; color: var(--secondary); }
.product-features-container { padding: 0 0 var(--spacing-lg) 0; }
.product-features li { margin-bottom: var(--spacing-sm); display: flex; gap: var(--spacing-sm); align-items: center; font-weight: 500; }
.product-features i { color: var(--primary); font-size: var(--font-size-lg); }
.product-actions { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }

.reveal { opacity: 0; transition: all 1.2s cubic-bezier(0.17, 0.55, 0.55, 1); }
.reveal.active { opacity: 1; transform: translateX(0); }
.from-left { transform: translateX(-150px); }
.from-right { transform: translateX(150px); }

/* ==========================================================================
   UI MOCKUPS (SaaS Look)
   ========================================================================== */
.mockup-base { 
    background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); 
    padding: var(--spacing-md); border: 1px solid var(--border-color); max-width: 500px; margin: 0 auto;
    transition: var(--transition);
}
.mockup-content { height: 360px; border-radius: var(--radius); overflow: hidden; background: #fff; position: relative; }

/* Rotaciones específicas */
.mockup-base-gym { border-color: var(--gym-accent); transform: rotate(-1deg); }
.mockup-base-turnos { border-color: var(--turnos-accent); transform: rotate(1deg); }
.mockup-base-auto { border-color: var(--auto-accent); transform: rotate(2deg); }
.mockup-base-crm { border-color: var(--crm-accent); transform: rotate(-2deg); }
.mockup-base-alqui { border-color: var(--alqui-accent); transform: rotate(1.5deg); }

.ui-app { width: 100%; height: 100%; display: flex; flex-direction: column; background: #f8fafc; }
.ui-header { height: 40px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 16px; background: #fff; justify-content: space-between; }
.ui-dots { display: flex; gap: 4px; }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.ui-title { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; }
.ui-body { flex: 1; display: flex; overflow: hidden; }
.ui-sidebar { width: 50px; border-right: 1px solid #e2e8f0; background: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 20px; gap: 16px; }
.ui-nav-item { width: 28px; height: 28px; border-radius: 6px; color: #94a3b8; display: flex; align-items: center; justify-content: center; }
.ui-nav-item.active { background: var(--primary-light); color: var(--primary); }
.ui-main { flex: 1; padding: 16px; overflow: hidden; display: flex; flex-direction: column; }

/* 1. GYM TEK UI */
.gym-header { display: flex; gap: 12px; margin-bottom: 16px; }
.gym-card { flex: 1; background: #fff; padding: 12px; border-radius: 10px; border: 1px solid #f1f5f9; }
.gym-card label { font-size: 0.65rem; color: #64748b; text-transform: uppercase; }
.gym-card strong { font-size: 1.2rem; font-weight: 700; }
.gym-card strong.pulse-num { color: var(--gym-accent); transform: scale(1.1); }
.gym-graph { height: 60px; display: flex; align-items: flex-end; gap: 4px; }
.gym-bar { flex: 1; background: var(--gym-accent); border-radius: 2px 2px 0 0; }
.gym-list-container { background: #fff; border-radius: 10px; border: 1px solid #f1f5f9; padding: 12px; }
.gym-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f8fafc; }
.gym-avatar { width: 24px; height: 24px; background: #fef3c7; color: #d97706; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }

/* 2. TURNOS TEK UI */
.cal-layout { display: flex; gap: 12px; height: 100%; }
.cal-sidebar-mini { width: 80px; background: #fff; border-radius: 8px; border: 1px solid #f1f5f9; padding: 8px; }
.cal-day-active { background: var(--turnos-accent); color: white; border-radius: 6px; padding: 8px; text-align: center; }
.cal-day-num { font-size: 1.1rem; font-weight: 700; display: block; }
.cal-day-str { font-size: 0.6rem; text-transform: uppercase; }
.cal-main { flex: 1; background: #fff; border-radius: 8px; border: 1px solid #f1f5f9; position: relative; }
.cal-event { margin: 7px; left: 10px; right: 10px; background: #ccfbf1; border-left: 3px solid ; padding: 6px; border-radius: 4px; font-size: 0.7rem; }
.cal-notification { position: absolute; bottom: 10px; right: 10px; background: var(--secondary); color: white; padding: 8px 12px; border-radius: 6px; font-size: 0.7rem; display: flex; align-items: center; gap: 8px; transform: translateY(50px); opacity: 0; transition: var(--transition); }
.cal-notification.show { transform: translateY(0); opacity: 1; }
.cal-dot { width: 8px; height: 8px; background: var(--turnos-accent); border-radius: 50%; }

/* 3. AUTO FLOW UI */
.flow-canvas { flex: 1; display: flex; flex-direction: column; align-items: center; }
.flow-node { width: 140px; padding: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 10px; }
.flow-node.active { border-color: var(--auto-accent); box-shadow: 0 0 0 2px var(--primary-light); }
.flow-icon { width: 24px; height: 24px; border-radius: 4px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.flow-text { font-size: 0.7rem; font-weight: 600; }
.flow-sub { font-size: 0.6rem; color: #94a3b8; }
.flow-line { width: 2px; height: 30px; background: #e2e8f0; position: relative; }
.flow-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--primary); transition: height 0.5s; }
.flow-line.animate::after { height: 100%; }
.flow-status { font-size: 0.6rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #e2e8f0; }
.flow-status.running { color: var(--primary); background: var(--primary-light); }
.flow-status.success { color: #16a34a; background: #dcfce7; }

/* 4. CRM KANBAN UI */
.kanban-board { display: flex; height: 100%; gap: 10px; }
.kanban-col { flex: 1; background: #f1f5f9; border-radius: 8px; padding: 8px; }
.kanban-header { font-size: 0.65rem; font-weight: 700; color: #64748b; margin-bottom: 8px; display: flex; justify-content: space-between; }
.kanban-count { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; }
.kanban-count.updated { background: #16a34a; color: white; }
.kanban-card { background: #fff; padding: 8px; border-radius: 6px; box-shadow: var(--shadow-sm); border: 1px solid #e2e8f0; font-size: 0.7rem; }
.kanban-tag { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 0.55rem; font-weight: 600; }
.tag-lead { background: #e0f2fe; color: #0284c7; }
.tag-deal { background: #ffedd5; color: #ea580c; }
.tag-won { background: #dcfce7; color: #16a34a; }

/* 5. ALQUI TEK UI */
.alqui-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.alqui-badge { background: #ede9fe; color: var(--alqui-accent); padding: 4px 10px; border-radius: 20px; font-size: 0.65rem; font-weight: 700; }
.alqui-prop { background: white; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; transition: var(--transition); }
.alqui-prop.highlight { border-color: var(--alqui-accent); box-shadow: 0 0 0 2px #ddd6fe; }
.alqui-status { font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-paid { background: #dcfce7; color: #16a34a; }
.ipc-alert { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--secondary); color: white; padding: 10px 20px; border-radius: 8px; opacity: 0; z-index: 10; transition: var(--transition); }
.ipc-alert.show { opacity: 1; }

/* ==========================================================================
   CTA & FAQ
   ========================================================================== */
.cta-section { background: var(--primary); color: white; padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: var(--font-size-h2); margin-bottom: var(--spacing-md); font-weight: 800; }
.cta-section p { font-size: var(--font-size-lg); margin-bottom: var(--spacing-xl); max-width: 700px; margin: 0 auto; }
.cta-btn { background: white; color: var(--primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.cta-btn:hover { background: var(--bg-light); }

.faq-section { padding: 80px 0; background: var(--bg-light); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); max-width: 1000px; margin: 0 auto; }
.faq-item { padding: var(--spacing-md); border-bottom: 1px solid var(--border-color); cursor: pointer; }
.faq-item summary { font-weight: 600; font-size: var(--font-size-lg); color: var(--secondary); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: var(--secondary); color: #94a3b8; padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; border-bottom: 1px solid #334155; padding-bottom: 40px; margin-bottom: 20px; }
.footer-logo-text { color: white; font-size: var(--font-size-xl); font-weight: 800; margin-bottom: 10px; display: block; }
.footer-column h5 { color: white; font-weight: 600; margin-bottom: 15px; }
.footer-column li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-column a:hover { color: var(--primary); }

/* ==========================================================================
   MODALES, TOAST & CHAT
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 32, 0.6); backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 1000;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: white; width: 95%; max-width: 450px; padding: 30px; border-radius: var(--radius-lg); position: relative; transform: scale(0.9); transition: var(--transition); }
.modal-overlay.active .modal { transform: scale(1); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); font-size: var(--font-size-sm); }
.form-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; transition: var(--transition); }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--secondary); color: white; padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px; opacity: 0; transition: var(--transition); z-index: 2000; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; }
.chat-toggle { width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg); }
.chat-window { width: 320px; height: 450px; background: white; border-radius: 16px; box-shadow: var(--shadow-lg); margin-bottom: 20px; overflow: hidden; display: flex; flex-direction: column; transform: scale(0); opacity: 0; transform-origin: bottom right; transition: var(--transition); }
.chat-window.open { transform: scale(1); opacity: 1; }
.chat-header { background: var(--secondary); padding: 15px; color: white; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.chat-body { flex: 1; padding: 15px; overflow-y: auto; background: var(--bg-light); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: var(--font-size-sm); }
.msg.bot { background: white; border: 1px solid var(--border-color); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

/* ==========================================================================
   SOBRE NOSOTROS & LEGAL
   ========================================================================== */
.about-hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--primary-light) 100%); }
.about-hero h1 { font-size: 3rem; color: var(--secondary); letter-spacing: -0.04em; margin-bottom: 16px; }

.icon-container { display: flex; justify-content: center; align-items: center; margin-bottom: 15px; height: 80px; }
animated-icons { width: 80px !important; height: 80px !important; }

.mision-vision { background: var(--bg-white); padding: 60px 24px; border-radius: var(--radius-lg); margin: 40px auto 60px; box-shadow: var(--shadow-lg); max-width: 1100px; text-align: center; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.valores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; padding-bottom: 80px; }
.valor-card { background: var(--bg-white); padding: 32px; border-radius: 12px; border: 1px solid var(--border-color); border-top: 4px solid var(--primary); transition: var(--transition); text-align: center; }
.valor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.alerta { padding: 18px; margin-bottom: 25px; border: 2px solid var(--primary); border-radius: 8px; color: #333; background-color: #e0f7fa; font-weight: 500; }
.contacto { background-color: #f0f8ff; padding: 20px; border-radius: 8px; border-left: 5px solid var(--primary); margin-top: 30px; }

.sla-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.95em; }
.sla-table thead th { background-color: var(--secondary); color: white; padding: 15px; border: 1px solid var(--primary); font-weight: 600; text-transform: uppercase; }
.sla-table tbody td { padding: 12px; border: 1px solid var(--border-color); text-align: center; }
.sla-table tbody tr:nth-child(even) { background-color: var(--bg-light); }
.sla-table tbody td:first-child { font-weight: 700; background-color: #e0f7fa; }
.highlight-success { color: #28a745; font-weight: 700; }

#btn-volver-arriba {
    display: none; position: fixed; bottom: 25px; right: 25px; z-index: 99;
    background-color: var(--primary); color: white; width: 45px; height: 45px;
    border-radius: 50%; font-size: 18px; line-height: 45px; text-align: center; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: var(--transition);
}
#btn-volver-arriba:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-card-grid:nth-child(even) { direction: ltr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .from-left, .from-right { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    :root { --font-size-h1: 2.5rem; --font-size-h2: 2rem; }
    .nav-links { display: none; }
    .hero-btns { flex-direction: column; }
    .product-actions .btn { width: 100%; }
    .sla-table { display: block; overflow-x: auto; white-space: nowrap; }
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: var(--spacing-md);
}
