/* ========== UTILIDADES MÓVILES ========== */
/* Ocultar elementos en móvil */
.hide-on-mobile {
    display: inline-flex;
}

@media (max-width: 640px) {
    .hide-on-mobile {
        display: none !important;
    }
    
    /* Mostrar solo en móvil */
    .show-on-mobile {
        display: block !important;
    }
}

.show-on-mobile {
    display: none;
}

/* Prevenir zoom en inputs en iOS */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    font-size: 16px; /* Previene zoom automático en iOS */
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: var(--font-size-mobile-base);
    }
}
/* =========================================
   RESET Y VARIABLES CSS
========================================= */

:root {
    /* Colores principales */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    
    /* Colores secundarios */
    --secondary-gray: #64748b;
    --secondary-gray-light: #94a3b8;
    --secondary-gray-dark: #475569;
    --secondary-50: #f8fafc;
    --secondary-600: #475569;
    --secondary-700: #334155;
    
    /* Colores neutros */
    --neutral-25: #fcfcfd;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-900: #111827;
    
    /* Colores de fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Colores de texto */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-white: #ffffff;
    
    /* Colores de estado */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0ea5e9;
    --green-100: #dcfce7;
    --green-600: #16a34a;
    --green-700: #15803d;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --blue-100: #dbeafe;
    --blue-700: #1d4ed8;
    --orange-100: #fed7aa;
    --orange-500: #f97316;
    --orange-700: #c2410c;
    --purple-100: #f3e8ff;
    --purple-600: #9333ea;
    
    /* Colores especiales */
    --purple: #8b5cf6;
    --green: #10b981;
    --orange: #f97316;
    --accent-50: #fdf4ff;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Bordes */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 20px;
    
    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Tipografía */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Espaciado */
    --container-max-width: 1200px;
    --section-padding-y: 6rem;
    --section-padding-mobile: 3rem;
    --container-padding: 2rem;
    --container-padding-mobile: 1rem;
    
    /* Tipografía móvil optimizada */
    --font-size-mobile-xs: 0.7rem;
    --font-size-mobile-sm: 0.8rem;
    --font-size-mobile-base: 0.9rem;
    --font-size-mobile-lg: 1rem;
    --font-size-mobile-xl: 1.1rem;
    --font-size-mobile-2xl: 1.3rem;
    --font-size-mobile-3xl: 1.6rem;
    --font-size-mobile-4xl: 2rem;
    --font-size-mobile-5xl: 2.5rem;
    
    /* Espaciado móvil optimizado */
    --spacing-mobile-xs: 0.375rem;
    --spacing-mobile-sm: 0.75rem;
    --spacing-mobile-md: 1rem;
    --spacing-mobile-lg: 1.5rem;
    --spacing-mobile-xl: 2rem;
    --spacing-mobile-2xl: 2.5rem;
    
    /* Touch targets para móvil */
    --touch-target-size: 44px;
    --touch-target-size-large: 48px;
    
    /* Breakpoints */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-text-size-adjust: 100%; /* Prevent iOS text scaling */
    -ms-text-size-adjust: 100%; /* Prevent Windows Phone text scaling */
}

/* Utilidades generales */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.section-header h2 {
    margin: 0;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-2xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    order: -1;
    text-align: center;
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    display: block;
}

/* =========================================
   HEADER Y NAVEGACIÓN
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.2;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
}

.logo:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-icon .material-icons {
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
}

.logo-accent {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: -2px;
}

.logo-sub a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 600;
}

.logo-sub a:hover {
    color: var(--primary-blue-dark);
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active section indicator */
.nav-links a.active {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
    position: relative;
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    border: none;
    margin: 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.nav-links a.active::after {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-demo {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-demo:hover {
    color: var(--primary-blue-dark);
}

.mobile-menu-toggle {
    display: none; /* Oculto en desktop por defecto */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

/* Ocultar elementos del menú móvil en desktop */
.mobile-nav-overlay,
.mobile-nav-panel {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-overlay,
    .mobile-nav-panel {
        display: block;
    }
}

.mobile-menu-toggle:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* =========================================
   BOTONES
========================================= */

.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
    min-height: 44px; /* Accessibility - minimum touch target */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: rgba(37, 99, 235, 0.3);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =========================================
   HERO SECTION
========================================= */

.hero {
    min-height: 100vh;
    min-height: 100svh; /* Support for new viewport units */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-2xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    width: fit-content;
}

.hero h1 {
    font-size: clamp(1.75rem, 6vw, 3rem); /* Responsive font size optimizado para móvil */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    word-wrap: break-word;
    hyphens: none;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    word-break: keep-all;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Dashboard Mockup */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.dashboard-mockup {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-slow);
    width: 100%;
    max-width: 100%;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(3deg);
}

.mockup-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.mockup-controls {
    display: flex;
    gap: 0.5rem;
}

.mockup-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-gray-light);
}

.mockup-controls span:first-child {
    background: #ff5f57;
}

.mockup-controls span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-controls span:last-child {
    background: #28ca42;
}

.mockup-content {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 200px;
    min-width: 150px; /* Prevent sidebar from getting too small */
    background: var(--bg-dark);
    padding: 1.5rem 1rem;
}

.mockup-logo {
    background: var(--primary-blue);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: var(--font-size-sm);
}

.mockup-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    font-size: var(--font-size-sm);
}

.nav-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-white);
}

.nav-item .material-icons {
    font-size: 18px;
    flex-shrink: 0;
}

.nav-item span:not(.material-icons) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mockup-main {
    flex: 1;
    padding: 2rem;
    min-width: 0; /* Allow flex item to shrink */
}

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: 1rem;
}

.mockup-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.5);
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.mockup-card.blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-color: rgba(37, 99, 235, 0.2);
}

.mockup-card.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.2);
}

.mockup-card.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.card-icon .material-icons {
    font-size: 20px;
    color: var(--primary-blue);
}

.mockup-card.green .card-icon .material-icons {
    color: var(--success);
}

.mockup-card.purple .card-icon .material-icons {
    color: var(--purple);
}

.card-info {
    min-width: 0; /* Allow text to wrap */
}

.card-info h4 {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.card-number {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 240px;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.floating-card.notification {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.floating-card.task {
    bottom: 20%;
    left: -15%;
    animation-delay: 3s;
}

.floating-card .material-icons {
    font-size: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.floating-card h5 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.floating-card p {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* =========================================
   TRUST SECTION
========================================= */



/* =========================================
   FEATURES SECTION
========================================= */

.features {
    padding: var(--section-padding-y) 0;
    background: var(--bg-primary);
}

.features h2,
.real-software-demo .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    word-wrap: break-word;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--purple));
    transform: scaleX(0);
    transition: var(--transition-base);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: var(--border-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.feature-icon .material-icons {
    font-size: 28px;
    color: var(--text-white);
}

.feature-card h3 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    word-wrap: break-word;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.feature-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

/* =========================================
   REAL SOFTWARE DEMO SECTION
========================================= */

.real-software-demo {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: #f8fafc;
    position: relative;
}

/* Demo Status and Counter */
.demo-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.demo-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--green-500) 0%, 
        var(--primary-500) 50%, 
        var(--green-500) 100%);
    opacity: 0.8;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    color: var(--green-600);
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.status-indicator:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    position: relative;
    animation: pulse 2s infinite;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.2);
    animation: ripple 2s infinite;
}

.status-dot.online {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.7);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.demo-counter {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--neutral-700);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.875rem;
}

.demo-counter:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.demo-counter .material-icons {
    font-size: 1.25rem;
    color: var(--primary-600);
    animation: viewersUpdate 3s ease-in-out infinite;
}

@keyframes viewersUpdate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#demo-viewers {
    font-weight: 700;
    color: var(--primary-600);
    position: relative;
}

#demo-viewers::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    border-radius: 1px;
    opacity: 0.3;
}

/* Demo Toolbar */
.demo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.demo-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-500) 0%, 
        var(--green-500) 25%, 
        var(--primary-400) 50%, 
        var(--green-500) 75%, 
        var(--primary-500) 100%);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.demo-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 1.25rem 0.625rem 0.625rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(99, 102, 241, 0.06));
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.demo-user:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 0.875rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: var(--primary-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.demo-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.demo-status-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    border-radius: 12px;
}

.demo-status-badge .material-icons {
    font-size: 1.125rem;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}



/* Tab Badges */
.tab-badge {
    background: var(--primary-600);
    color: white;
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    margin-left: 0.5rem;
    font-weight: 600;
}

.tab-badge.warning {
    background: #f59e0b;
}

/* Dashboard Metrics */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
}

@media (max-width: 1024px) {
    .dashboard-metrics {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.metric-card.revenue {
    border-left: 4px solid #10b981;
}

.metric-card.repairs {
    border-left: 4px solid #3b82f6;
}

.metric-card.efficiency {
    border-left: 4px solid #f59e0b;
}

.metric-card.satisfaction {
    border-left: 4px solid #8b5cf6;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.metric-card.revenue .metric-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.metric-card.repairs .metric-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.metric-card.efficiency .metric-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.metric-card.satisfaction .metric-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.metric-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--neutral-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--neutral-500);
}

.metric-btn:hover {
    background: var(--primary-100);
    color: var(--primary-600);
}

.metric-content h3 {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.metric-change.neutral {
    color: var(--neutral-600);
}

.metric-change .material-icons {
    font-size: 1rem;
}

/* Progress Ring */
.progress-ring {
    width: 60px;
    height: 60px;
    margin-top: 1rem;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-700);
}

/* Efficiency Indicator */
.efficiency-indicator {
    margin-top: 1rem;
}

.efficiency-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.efficiency-fill {
    height: 100%;
    background: linear-gradient(to right, #f59e0b, #eab308);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.efficiency-label {
    font-size: 0.8rem;
    color: var(--neutral-600);
    font-weight: 500;
}

/* Mini Charts */
.mini-chart {
    width: 100%;
    height: 40px;
    margin-top: 1rem;
}

/* Activity Feed */
.dashboard-activity {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.activity-header h3 {
    font-size: 1.25rem;
    color: var(--neutral-900);
    margin: 0;
    font-weight: 600;
}

.activity-controls {
    display: flex;
    gap: 0.5rem;
}

.activity-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--neutral-600);
}

.activity-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.activity-btn:hover:not(.active) {
    background: var(--neutral-50);
    border-color: var(--primary-300);
}

.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: #f9fafb;
    border-radius: 6px;
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
}

.activity-item.new {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
    margin-left: -0.5rem;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.repair {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.activity-icon.complete {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.activity-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.activity-icon.client {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.activity-icon.delivery {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9rem;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.activity-amount {
    font-weight: 600;
    color: #10b981;
    font-size: 0.9rem;
}

.activity-action .btn-action {
    padding: 0.25rem 0.75rem;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-action .btn-action:hover {
    background: var(--primary-700);
}

/* Quick Actions */
.quick-actions {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.quick-actions h3 {
    font-size: 1.25rem;
    color: var(--neutral-900);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.action-card:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-100);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-content h4 {
    font-size: 0.9rem;
    color: var(--neutral-900);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.action-content p {
    font-size: 0.8rem;
    color: var(--neutral-600);
    margin: 0;
}

.action-arrow {
    color: var(--neutral-400);
    margin-left: auto;
    transition: all 0.2s ease;
}

.action-card:hover .action-arrow {
    color: var(--primary-600);
    transform: translateX(2px);
}

/* Enhanced Search and Filters */
.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--neutral-400);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.view-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Enhanced Table Styles */
.sort-icon {
    font-size: 1rem;
    margin-left: 0.25rem;
    color: var(--neutral-400);
    transition: all 0.2s ease;
}

.repairs-table th:hover .sort-icon {
    color: var(--primary-600);
}

.client-cell {
    min-width: 180px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.client-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.client-name {
    font-weight: 500;
    color: var(--neutral-900);
    font-size: 0.9rem;
}

.client-contact {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.device-cell {
    min-width: 200px;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.device-icon {
    color: var(--neutral-500);
    font-size: 1.2rem;
}

.device-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.device-name {
    font-weight: 500;
    color: var(--neutral-900);
    font-size: 0.9rem;
}

.device-issue {
    font-size: 0.8rem;
    color: var(--neutral-500);
    line-height: 1.2;
}

.date-cell {
    min-width: 120px;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.date-primary {
    font-weight: 500;
    color: var(--neutral-900);
    font-size: 0.9rem;
}

.date-secondary {
    font-size: 0.8rem;
    color: var(--neutral-500);
}

.technician-cell {
    min-width: 140px;
}

.tech-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--neutral-100);
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tech-name {
    font-weight: 500;
    color: var(--neutral-900);
    font-size: 0.9rem;
}

.priority-cell {
    min-width: 80px;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.priority-badge.low {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.cost-cell {
    min-width: 100px;
    text-align: right;
}

.cost-amount {
    font-weight: 600;
    color: var(--neutral-900);
}

.cost-estimate {
    font-weight: 500;
    color: var(--neutral-600);
    font-style: italic;
}

/* Status Badges Enhanced */
.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.waiting-parts {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Enhanced Action Icons */
.action-icon.view:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-icon.print:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.action-icon.deliver:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.action-icon.note:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.action-icon.parts:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.action-icon.progress:hover {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

/* Table Pagination Enhanced */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    gap: 1rem;
}

.pagination-info {
    flex: 1;
    font-size: 0.9rem;
    color: var(--neutral-600);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--neutral-600);
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.pagination-btn:hover:not(.active):not(:disabled) {
    background: var(--neutral-50);
    border-color: var(--primary-300);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--neutral-400);
}

.pagination-size select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}



.software-showcase {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.software-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: white;
    color: var(--primary-600);
    border-bottom-color: var(--primary-600);
}

.tab-btn:hover:not(.active) {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-600);
}

.software-tab {
    display: none;
    padding: 2rem;
    min-height: 800px;
}

.software-tab.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Sections */
.software-header,
.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.software-title h1,
.analytics-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.software-title p,
.analytics-title p {
    color: var(--neutral-600);
    margin: 0;
}

.software-actions,
.analytics-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--neutral-300);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--neutral-600);
}

.theme-toggle:hover {
    background: var(--neutral-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Dark theme styles for theme toggle button */
.demo-interface.dark-theme .theme-toggle,
.real-software-demo.dark-theme .theme-toggle,
.interactive-demo-container.dark-theme .theme-toggle {
    background: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
}

.demo-interface.dark-theme .theme-toggle:hover,
.real-software-demo.dark-theme .theme-toggle:hover,
.interactive-demo-container.dark-theme .theme-toggle:hover {
    background: #6b7280;
    border-color: #9ca3af;
    color: #ffffff;
}

/* Repair Stats */
.repair-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.orange-stat {
    border-left: 4px solid #f97316;
}

.stat-card.blue-stat {
    border-left: 4px solid #3b82f6;
}

.stat-card.green-stat {
    border-left: 4px solid #10b981;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.orange-stat .stat-icon {
    background: #fed7aa;
    color: #ea580c;
}

.blue-stat .stat-icon {
    background: #dbeafe;
    color: #2563eb;
}

.green-stat .stat-icon {
    background: #d1fae5;
    color: #059669;
}

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1;
}

/* Software Controls */
.software-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-filter {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.search-input-container {
    position: relative;
    flex: 1;
}

.search-input-container .material-icons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    z-index: 1;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    padding: 0.75rem;
    min-width: 150px;
}

.filter-dropdown select {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    width: 100%;
}

.view-switcher {
    display: flex;
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: var(--primary-600);
    color: white;
}

.view-btn:not(.active):hover {
    background: var(--neutral-50);
}

/* Repairs Table */
.repairs-container {
    position: relative;
}

.repairs-table-view,
.repairs-cards-view {
    display: none;
}

.repairs-table-view.active,
.repairs-cards-view.active {
    display: block;
}

.repairs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.repairs-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.repairs-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.repair-row {
    transition: all 0.2s ease;
}

.repair-row:hover {
    background: #f8fafc;
}

.repair-id {
    font-weight: 600;
    color: var(--primary-600);
    font-family: monospace;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.in-workshop {
    background: #fed7aa;
    color: #9a3412;
}

.status-badge.completed {
    background: #dbeafe;
    color: #1e40af;
}

.actions-cell {
    text-align: center;
}

.action-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--neutral-500);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.action-icon.edit:hover {
    background: #dbeafe;
    color: #2563eb;
}

.action-icon.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.action-icon.check:hover {
    background: #d1fae5;
    color: #059669;
}

.action-icon.more:hover {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

/* Repairs Cards View */
.repairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.repair-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.repair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-600);
    margin: 0;
}

.card-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.equipment {
    color: var(--neutral-600);
    margin: 0 0 1rem 0;
    font-style: italic;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.meta-item .material-icons {
    font-size: 16px;
    color: var(--neutral-400);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* Analytics Section */
.main-analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analytics-card.orange-card { border-left: 4px solid #f97316; }
.analytics-card.purple-card { border-left: 4px solid #8b5cf6; }
.analytics-card.green-card { border-left: 4px solid #10b981; }
.analytics-card.blue-card { border-left: 4px solid #3b82f6; }

.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.orange-card .card-icon { background: #fed7aa; color: #ea580c; }
.purple-card .card-icon { background: #f3e8ff; color: #7c3aed; }
.green-card .card-icon { background: #d1fae5; color: #059669; }
.blue-card .card-icon { background: #dbeafe; color: #2563eb; }

.card-data h3 {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.percentage {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

/* Advanced Metrics */
.advanced-metrics {
    margin-top: 3rem;
}

.advanced-metrics h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.25rem 0;
}

.metric-info p {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.metric-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.metric-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff7ed;
    color: #ea580c;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.percentage-circle {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

/* Efficiency Section */
.efficiency-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.efficiency-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.efficiency-icon {
    width: 3rem;
    height: 3rem;
    background: var(--success);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.efficiency-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.25rem 0;
}

.efficiency-info p {
    color: var(--neutral-600);
    margin: 0;
}

.efficiency-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--success);
    text-align: center;
    margin-bottom: 1rem;
}

.efficiency-bar {
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
}

.efficiency-gradient {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #84cc16, #10b981);
    border-radius: 6px;
    animation: efficiencyPulse 2s ease-in-out infinite;
}

@keyframes efficiencyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Year Selector and Controls */
.year-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    padding: 0.75rem;
}

.year-selector select {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
}

.export-btn,
.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.export-btn:hover,
.refresh-btn:hover {
    background: var(--neutral-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

/* =========================================
   DEMO SECTION
========================================= */

.demo-section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: linear-gradient(135deg, 
        var(--primary-50) 0%, 
        var(--secondary-50) 50%, 
        var(--accent-50) 100%
    );
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.demo-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
    align-items: center;
}

.demo-tour-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-tour {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--neutral-300);
    border-radius: 0.75rem;
    color: var(--neutral-700);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-tour:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-700);
    transform: translateY(-2px);
}

.btn-tour.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.demo-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-guided-tour {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--secondary-600);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    animation: pulse 2s infinite;
}

.btn-guided-tour:hover {
    background: var(--secondary-700);
    transform: translateY(-2px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.interactive-demo-container {
    margin: 3rem 0;
    position: relative;
}

.demo-browser {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.browser-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.browser-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--neutral-600);
    flex: 1;
    max-width: 400px;
    margin: 0 1rem;
}

.browser-menu {
    color: var(--neutral-500);
}

.demo-interface {
    display: flex;
    min-height: 700px;
    background: #f8fafc;
}

.demo-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.demo-logo {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.demo-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--neutral-600);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    min-height: 44px;
}

.nav-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.nav-item.active {
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-600);
}

.badge {
    padding: 0.25rem 0.5rem;
    background: var(--primary-600);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.badge.warning {
    background: var(--orange-500);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--neutral-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 0.875rem;
}

.user-role {
    color: var(--neutral-500);
    font-size: 0.75rem;
}

.demo-content {
    flex: 1;
    background: #f8fafc;
    overflow-y: auto;
    max-height: 700px;
}

.demo-section {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.demo-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.section-title p {
    color: var(--neutral-600);
    margin: 0;
}

.section-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-500);
    font-size: 0.875rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-card.clickable:hover {
    border-color: var(--primary-200);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon.blue { background: var(--primary-100); color: var(--primary-600); }
.stat-icon.green { background: var(--green-100); color: var(--green-600); }
.stat-icon.purple { background: var(--purple-100); color: var(--purple-600); }
.stat-icon.orange { background: var(--orange-100); color: var(--orange-600); }

.stat-content h3 {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--green-600);
}

.stat-change.negative {
    color: var(--red-600);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--neutral-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.chart-container {
    position: relative;
    height: 200px;
}

.recent-activity {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 1.5rem 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.blue { background: var(--primary-100); color: var(--primary-600); }
.activity-icon.green { background: var(--green-100); color: var(--green-600); }
.activity-icon.purple { background: var(--purple-100); color: var(--purple-600); }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: var(--neutral-500);
    font-size: 0.75rem;
}

/* Orders Section */
.orders-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-container .material-icons {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--neutral-300);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-container {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: 0.75rem;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 150px;
}

.new-order-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-order-btn:hover {
    background: var(--primary-700);
}

.orders-table-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background: var(--neutral-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--neutral-700);
    border-bottom: 1px solid var(--neutral-200);
    font-size: 0.875rem;
}

.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-100);
}

.order-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.order-row:hover {
    background: var(--primary-25);
}

.order-id {
    font-weight: 600;
    color: var(--primary-600);
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.client-contact {
    color: var(--neutral-500);
    font-size: 0.75rem;
}

.device-info {
    display: flex;
    flex-direction: column;
}

.device-name {
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.device-detail {
    color: var(--neutral-500);
    font-size: 0.75rem;
}

.technician-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.in-progress {
    background: var(--blue-100);
    color: var(--blue-700);
}

.status.completed {
    background: var(--green-100);
    color: var(--green-700);
}

.status.pending {
    background: var(--orange-100);
    color: var(--orange-700);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--neutral-100);
    color: var(--neutral-600);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary-100);
    color: var(--primary-600);
}

.action-btn.urgent {
    background: var(--red-100);
    color: var(--red-600);
}

.action-btn.urgent:hover {
    background: var(--red-200);
}

/* Clients Section */
.clients-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--neutral-300);
}

.view-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: var(--primary-600);
    color: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.client-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--neutral-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
}

.client-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0 0 0.5rem 0;
}

.client-email {
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.client-phone {
    color: var(--neutral-500);
    font-size: 0.875rem;
    margin: 0;
}

.client-stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--neutral-100);
    border-bottom: 1px solid var(--neutral-100);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-top: 0.25rem;
}

.client-footer {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neutral-300);
    color: var(--neutral-700);
}

.btn-outline:hover {
    background: var(--neutral-50);
}

/* Inventory Section */
.inventory-alerts {
    margin-bottom: 1.5rem;
}

.alert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 1rem;
    border-left: 4px solid var(--orange-500);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alert-card.warning {
    border-left-color: var(--orange-500);
    background: var(--orange-50);
}

.alert-card .material-icons {
    color: var(--orange-600);
    font-size: 1.5rem;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    color: var(--orange-900);
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    color: var(--orange-700);
    font-size: 0.875rem;
}

.inventory-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.inventory-table-container {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th {
    background: var(--neutral-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--neutral-700);
    border-bottom: 1px solid var(--neutral-200);
    font-size: 0.875rem;
}

.inventory-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-100);
}

.inventory-row {
    transition: all 0.2s ease;
}

.inventory-row:hover {
    background: var(--neutral-25);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-image {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--neutral-100);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-500);
}

.product-details {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.product-description {
    color: var(--neutral-500);
    font-size: 0.75rem;
}

.sku {
    font-family: monospace;
    color: var(--neutral-600);
    background: var(--neutral-50);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-badge.good {
    background: var(--green-100);
    color: var(--green-700);
}

.stock-badge.low {
    background: var(--orange-100);
    color: var(--orange-700);
}

.stock-badge.critical {
    background: var(--red-100);
    color: var(--red-700);
}

.price {
    font-weight: 600;
    color: var(--neutral-900);
}

/* Reports Section */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--neutral-300);
}

.date-range-picker select {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.report-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.report-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.report-change {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mini-chart {
    height: 60px;
    position: relative;
}

.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.ring-progress {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-600) calc(var(--progress) * 1%), var(--neutral-200) 0);
    position: relative;
}

.ring-progress::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: white;
    border-radius: 50%;
}

.ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: var(--neutral-900);
    z-index: 1;
}

.time-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.time-label {
    color: var(--neutral-600);
}

.time-value {
    font-weight: 600;
    color: var(--neutral-900);
}

.satisfaction-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.rating-bar span:first-child {
    width: 2rem;
    color: var(--neutral-600);
}

.rating-bar span:last-child {
    width: 2rem;
    text-align: right;
    color: var(--neutral-600);
}

.bar {
    flex: 1;
    height: 0.5rem;
    background: var(--neutral-200);
    border-radius: 0.25rem;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--primary-600);
    transition: width 0.5s ease;
}

.detailed-charts {
    margin-top: 2rem;
}

.chart-card.large {
    width: 100%;
}

.chart-container.large {
    height: 300px;
}

/* Demo Footer */
.demo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.demo-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--neutral-700);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .demo-interface {
        flex-direction: column;
    }
    
    .demo-sidebar {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .demo-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .nav-item {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .demo-status {
        gap: 1.5rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
    }
    
    .status-indicator,
    .demo-counter {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }

    .demo-toolbar {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .demo-info {
        justify-content: center;
        width: 100%;
    }
    
    .demo-user {
        padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .user-avatar::after {
        width: 10px;
        height: 10px;
    }
    
    .demo-controls {
        justify-content: center;
    }
    
    .demo-status-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .demo-status-badge .material-icons {
        font-size: 1rem;
    }

    .demo-controls {
        gap: 1rem;
    }
    
    .demo-tour-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-tour {
        justify-content: center;
    }
    
    .demo-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-guided-tour,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .browser-url {
        display: none;
    }
    
    .demo-content {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-toolbar,
    .clients-toolbar,
    .inventory-toolbar {
        flex-direction: column;
    }
    
    .search-container {
        min-width: unset;
    }
    
    .filter-container {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
        min-width: unset;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .orders-table-container {
        overflow-x: auto;
    }
    
    .inventory-table-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .demo-section {
        padding: clamp(2rem, 4vw, 4rem) 0;
    }
    
    .demo-browser {
        border-radius: 0.5rem;
    }
    
    .demo-interface {
        min-height: 500px;
    }
    
    .demo-content {
        max-height: 500px;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* =========================================
   URGENCY TIMER
========================================= */

.urgency-banner {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border-radius: var(--border-radius-xl);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
    0%, 100% { box-shadow: var(--shadow-2xl); }
    50% { box-shadow: 0 25px 50px -12px rgba(255, 71, 87, 0.4); }
}

.urgency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.urgency-content {
    padding: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.urgency-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.fire-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.fire-icon .material-icons {
    font-size: 2rem;
    color: #ffeb3b;
}

.urgency-text {
    flex: 1;
}

.urgency-text h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.urgency-text p {
    margin: 0;
    opacity: 0.95;
    font-size: var(--font-size-base);
}

.urgency-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.urgency-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.countdown-container {
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1rem 0.75rem;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-value {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 600;
}

.time-separator {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.7;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 0.7; }
    51%, 100% { opacity: 0.3; }
}

.urgency-actions {
    text-align: center;
}

.btn-urgency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    color: #333;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 800;
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(255, 235, 59, 0.4);
    transition: var(--transition-base);
    margin-bottom: 1.5rem;
    animation: urgencyButtonPulse 2s ease-in-out infinite;
}

@keyframes urgencyButtonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-urgency:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 235, 59, 0.6);
    background: linear-gradient(135deg, #fff176, #ffca28);
}

.urgency-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.urgency-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.urgency-stats .stat-icon {
    font-size: 1.125rem;
}

.urgency-stats .stat-text strong {
    color: #ffeb3b;
    font-weight: 800;
}

/* Mini Timer para tarjetas de precio */
.offer-timer {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    text-align: center;
    padding: 0.75rem;
    margin: -2rem -2rem 1rem -2rem;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    font-size: var(--font-size-sm);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.offer-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.timer-icon {
    margin-right: 0.5rem;
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.mini-timer {
    color: #ffeb3b;
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-base);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.price-strike {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.old-price {
    color: var(--text-tertiary);
    text-decoration: line-through;
    font-size: var(--font-size-sm);
}

.discount-badge {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: discountPulse 1.5s ease-in-out infinite;
}

@keyframes discountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =========================================
   PRICING SECTION
========================================= */

.pricing {
    padding: var(--section-padding-y) 0;
    background: var(--bg-secondary);
}

    .pricing h2 {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        font-weight: 800;
        margin-bottom: 1rem;
        text-align: center;
        word-wrap: break-word;
        line-height: 1.3;
    }

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.toggle-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.discount {
    background: var(--success);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    margin-left: 0.5rem;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-gray-light);
    border-radius: 24px;
    transition: var(--transition-base);
}

.toggle-switch label::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--bg-primary);
    border-radius: 50%;
    transition: var(--transition-base);
}

.toggle-switch input:checked + label {
    background: var(--primary-blue);
}

.toggle-switch input:checked + label::before {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.pricing-card.popular {
    background: #ffffff;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.pricing-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transform: translateY(-5px);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.popular .amount {
    color: #3b82f6;
}

.amount.yearly {
    display: none;
}

.amount {
    transition: opacity 0.3s ease;
}

.amount.switching {
    animation: priceFlip 0.6s ease-in-out;
}

@keyframes priceFlip {
    0% { transform: rotateY(0deg); opacity: 1; }
    50% { transform: rotateY(90deg); opacity: 0.3; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

.period {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 600;
    transform: translateY(-5px);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.pricing-features .material-icons {
    color: var(--success);
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-features .material-icons {
    color: #10b981;
}

.pricing-card .pricing-features li {
    transition: all 0.2s ease;
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-note .material-icons {
    color: var(--info);
    font-size: 18px;
}

/* Botones mejorados para tarjetas de precios */
.pricing-card .btn-primary {
    background: #3b82f6;
    border: none;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pricing-card .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.pricing-card.popular .btn-primary {
    background: #3b82f6;
}

.pricing-card.popular .btn-primary:hover {
    background: #2563eb;
}

/* =========================================
   TESTIMONIALS SECTION
========================================= */

.testimonials {
    padding: var(--section-padding-y) 0;
    background: var(--bg-primary);
}

    .testimonials h2 {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        font-weight: 800;
        margin-bottom: 1rem;
        text-align: center;
        word-wrap: break-word;
        line-height: 1.3;
    }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    transition: var(--transition-base);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating .material-icons {
    color: #fbbf24;
    font-size: 18px;
}

.testimonial-card blockquote {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

/* =========================================
   CTA SECTION
========================================= */

.cta-section {
    padding: var(--section-padding-y) 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--purple));
    color: var(--text-white);
    text-align: center;
}

    .cta-content h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        font-weight: 800;
        margin-bottom: 1rem;
        word-wrap: break-word;
        line-height: 1.3;
    }

.cta-content p {
    font-size: var(--font-size-lg);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.cta-feature .material-icons {
    font-size: 18px;
    color: #10b981;
}

/* =========================================
   CONTACT SECTION
========================================= */

.contact {
    padding: var(--section-padding-y) 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

    .contact-info h2 {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        font-weight: 800;
        margin-bottom: 1rem;
        word-wrap: break-word;
        line-height: 1.3;
    }

.contact-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.method-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.social-proof {
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-blue);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.contact-form-container {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: 1rem;
}

.form-note .material-icons {
    font-size: 14px;
    color: var(--success);
}

/* =========================================
   FOOTER
========================================= */

.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--text-white);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--primary-blue-light);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-white);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
}

/* =========================================
   RESPONSIVE DESIGN - MOBILE
========================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        max-width: 900px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* ========== MEJORAS DEL HERO SECTION PARA MÓVIL ========== */
    
    .hero {
        min-height: 100vh;
        padding: 5rem 0 2rem;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        position: relative;
        overflow: hidden;
    }
    
    .hero::before {
        background-image: 
            radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 1.25rem;
        max-width: 100%;
    }
    
    .hero-content {
        order: 1;
        max-width: 100%;
    }
    
    .hero-visual {
        order: 2;
        margin-top: 1.5rem;
        display: none; /* Ocultar en móvil para más espacio */
    }
    
    .hero-badge {
        margin: 0 auto 2rem;
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
        font-weight: 600;
        border-radius: 25px;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
        border: 1px solid rgba(37, 99, 235, 0.15);
        color: var(--primary-blue);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    }
    
    .hero-badge .material-icons {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        letter-spacing: -0.025em;
        max-width: 100%;
        font-weight: 800;
        color: var(--text-primary);
        word-break: break-word;
        hyphens: none;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        max-width: 100%;
        color: var(--text-secondary);
        text-align: center;
        font-weight: 400;
    }
    
    /* Estética mejorada del banner (móvil) */
    .hero-content {
        background: rgba(255, 255, 255, 0.6);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 16px;
        padding: 1.25rem;
        box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    }
    
    .hero-badge {
        background: rgba(37, 99, 235, 0.08);
        border: 1px solid rgba(37, 99, 235, 0.2);
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
    }
    
    .hero h1 {
        letter-spacing: -0.02em;
        text-wrap: balance;
    }
    
    .hero-subtitle {
        max-width: 42rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons .btn-secondary {
        background: #ffffff;
        border: 2px solid rgba(37, 99, 235, 0.2);
        color: var(--primary-blue);
    }
    
    .hero-subtitle strong {
        color: var(--primary-blue);
        font-weight: 600;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        border: 1px solid rgba(37, 99, 235, 0.15);
        display: inline-block;
        margin-top: 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
        align-items: center;
    }
    
    .hero-buttons .btn-large {
        width: 100%;
        max-width: 320px;
        padding: 1.125rem 2rem;
        font-size: 1rem;
        font-weight: 600;
        justify-content: center;
        border-radius: 14px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .hero-buttons .btn-primary {
        background: linear-gradient(135deg, var(--primary-blue) 0%, #1d4ed8 100%);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
    }
    
    .hero-buttons .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
    }
    
    .hero-buttons .btn-secondary {
        background: white;
        border: 2px solid rgba(37, 99, 235, 0.2);
        color: var(--primary-blue);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .hero-buttons .btn-secondary:hover {
        background: rgba(37, 99, 235, 0.05);
        border-color: rgba(37, 99, 235, 0.3);
        transform: translateY(-1px);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 1.25rem 1rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
        border-radius: 16px;
        border: 1px solid rgba(226, 232, 240, 0.3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .stat-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary-blue);
        display: block;
        margin-bottom: 0.375rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.875rem;
        color: var(--text-secondary);
        font-weight: 500;
        line-height: 1.2;
    }

    /* ========== NUEVO MENÚ HAMBURGUESA MÓVIL ========== */
    
    /* Ocultar navegación normal en móvil */
    .nav-links {
        display: none;
    }
    
    /* Mostrar botón hamburguesa en móvil */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-primary);
        font-size: 24px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-toggle:hover {
        background-color: rgba(37, 99, 235, 0.1);
    }
    
    /* Menú móvil overlay - Minimalista */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Panel del menú móvil - Diseño minimalista */
    .mobile-nav-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100%;
        background: #ffffff;
        z-index: 9999;
        padding: 0;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-nav-panel.active {
        right: 0;
    }
    
    /* Header del menú móvil - Diseño minimalista */
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 1.5rem 1rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .mobile-nav-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .mobile-nav-logo .logo-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
    }
    
    .mobile-nav-logo .logo-icon .material-icons {
        color: white;
        font-size: 1.25rem;
        z-index: 2;
        position: relative;
    }
    
    .mobile-nav-logo .logo-accent {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 6px;
        height: 6px;
        background: #10b981;
        border-radius: 50%;
        border: 1px solid white;
        z-index: 3;
        animation: pulse 2s infinite;
    }
    
    .mobile-nav-logo .logo-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mobile-nav-logo .logo-main {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--primary-blue);
        line-height: 1.2;
    }
    
    .mobile-nav-logo .logo-sub {
        font-size: 0.75rem;
        color: var(--text-tertiary);
        line-height: 1.2;
    }
    
    .mobile-nav-logo .logo-sub a {
        color: var(--text-tertiary);
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .mobile-nav-logo .logo-sub a:hover {
        color: var(--primary-blue);
    }
    
    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--text-secondary);
        font-size: 20px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-close:hover {
        background: #f1f5f9;
        color: var(--text-primary);
    }
    
    /* Enlaces del menú móvil - Diseño minimalista */
    .mobile-nav-links {
        list-style: none;
        padding: 1rem 0;
        margin: 0;
    }
    
    .mobile-nav-links li {
        margin-bottom: 0;
    }
    
    .mobile-nav-links a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 400;
        font-size: 1rem;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }
    
    .mobile-nav-links a:hover {
        background: #f8fafc;
        color: var(--primary-blue);
        border-left-color: #e2e8f0;
    }
    
    .mobile-nav-links a.active {
        background: #f0f9ff;
        color: var(--primary-blue);
        font-weight: 500;
        border-left-color: var(--primary-blue);
    }
    
    /* Iconos minimalistas para los enlaces */
    .mobile-nav-links a[data-section="inicio"]::before,
    .mobile-nav-links a[href="#"]::before {
        content: '◦';
        margin-right: 0.75rem;
        font-size: 0.8rem;
        color: var(--text-tertiary);
    }
    
    .mobile-nav-links a[href="#caracteristicas"]::before {
        content: '◦';
        margin-right: 0.75rem;
        font-size: 0.8rem;
        color: var(--text-tertiary);
    }
    
    .mobile-nav-links a[href="#precios"]::before {
        content: '◦';
        margin-right: 0.75rem;
        font-size: 0.8rem;
        color: var(--text-tertiary);
    }
    
    .mobile-nav-links a[href="#testimonios"]::before {
        content: '◦';
        margin-right: 0.75rem;
        font-size: 0.8rem;
        color: var(--text-tertiary);
    }
    
    .mobile-nav-links a[href="#contacto"]::before {
        content: '◦';
        margin-right: 0.75rem;
        font-size: 0.8rem;
        color: var(--text-tertiary);
    }
    
    .mobile-nav-links a.active::before {
        content: '●';
        color: var(--primary-blue);
    }
    
    /* Botón CTA en menú móvil - Diseño minimalista */
    .mobile-nav-cta {
        margin-top: auto;
        padding: 1.5rem;
        border-top: 1px solid #f1f5f9;
    }
    
    .mobile-nav-cta .btn-primary {
        width: 100%;
        justify-content: center;
        background: var(--primary-blue);
        border: none;
        padding: 0.875rem 1.5rem;
        font-weight: 500;
        font-size: 0.95rem;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-cta .btn-primary:hover {
        background: var(--primary-blue-dark);
        transform: translateY(-1px);
    }
    
    /* Animaciones minimalistas eliminadas para simplicidad */

    /* ========== MEJORAS PARA BOTONES MÓVILES ========== */
    .btn-primary, .btn-secondary, .btn-outline {
        min-height: var(--touch-target-size-large);
        padding: 0.875rem 1.75rem;
        font-size: var(--font-size-mobile-lg);
        font-weight: 600;
        border-radius: 12px;
        touch-action: manipulation; /* Optimiza para touch */
        -webkit-tap-highlight-color: transparent; /* Remueve highlight en iOS */
    }
    
    .btn-primary:active,
    .btn-secondary:active,
    .btn-outline:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Mejoras para enlaces de navegación móvil - aplicadas en la definición principal */
    
    /* Urgency Timer Responsive */
    .urgency-content {
        padding: 1.5rem;
    }
    
    .urgency-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .urgency-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    .time-value {
        font-size: 1.25rem;
    }
    
    .urgency-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .urgency-stats .stat-item {
        justify-content: center;
    }
    
    .offer-timer {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }

    /* Botón hamburguesa ya está definido arriba */
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-demo {
        display: none;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-large {
        width: 100%;
        max-width: 320px;
        min-height: 56px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        padding: 1rem 2rem;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    }
    
    .hero-buttons .btn-large:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-large {
        width: 100%;
        max-width: 320px;
        min-height: 56px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        padding: 1rem 2rem;
    }
    
    .cta-features {
        justify-content: center;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* ========== MEJORAS DE ESPACIADO PARA MÓVILES PEQUEÑOS ========== */
    .container {
        padding: 0 var(--container-padding-mobile);
    }
    
    .nav-container {
        padding: var(--spacing-mobile-md) var(--container-padding-mobile);
    }
    
    /* Mejoras de espaciado para secciones */
    section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .hero {
        padding: var(--spacing-mobile-xl) 0 var(--spacing-mobile-lg);
    }
    
    /* Mejoras para cards y elementos */
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: var(--spacing-mobile-lg);
        margin-bottom: var(--spacing-mobile-md);
    }
    
    /* Mejoras para formularios */
    .form-group {
        margin-bottom: var(--spacing-mobile-md);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: var(--spacing-mobile-md);
        font-size: var(--font-size-mobile-base);
        min-height: var(--touch-target-size);
    }
    
    /* Mejoras para texto y párrafos */
    p {
        font-size: var(--font-size-mobile-base);
        line-height: 1.6;
        margin-bottom: var(--spacing-mobile-md);
    }
    
    h3 {
        font-size: var(--font-size-mobile-xl);
        margin-bottom: var(--spacing-mobile-sm);
    }
    
    h4 {
        font-size: var(--font-size-mobile-lg);
        margin-bottom: var(--spacing-mobile-sm);
    }
    
    /* Mejoras para imágenes y elementos visuales en móvil */
    .hero-visual {
        margin-top: var(--spacing-mobile-xl);
        max-width: 100%;
        overflow: hidden;
    }
    
    .dashboard-mockup {
        transform: none; /* Simplifica las transformaciones 3D en móvil */
        max-width: 100%;
        margin: 0 auto;
        box-shadow: var(--shadow-lg);
    }
    
    .dashboard-mockup:hover {
        transform: translateY(-2px);
    }
    
    /* Optimiza imágenes para móvil */
    img {
        max-width: 100%;
        height: auto;
        display: block;
        loading: lazy; /* Lazy loading nativo */
    }
    
    /* Optimizaciones de rendimiento para móvil */
    * {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .dashboard-mockup,
    .feature-card,
    .pricing-card {
        will-change: transform;
        transform: translateZ(0); /* Fuerza aceleración por hardware */
    }
    
    /* Optimiza animaciones y transiciones en móvil */
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .nav-links a {
        will-change: transform;
    }
    
    /* Reduce complejidad visual en móvil para mejor rendimiento */
    .dashboard-mockup {
        box-shadow: var(--shadow-md); /* Sombra más simple */
    }
    
    /* Optimiza fuentes para móvil */
    body {
        text-rendering: optimizeSpeed;
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    /* Mejoras para iconos en móvil */
    .feature-icon,
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .hero {
        padding: var(--spacing-mobile-2xl) 0 var(--spacing-mobile-xl);
        min-height: 85vh;
    }
    
    /* Mejoras adicionales del hero para móviles pequeños */
    .hero {
        padding: 4rem 0 2rem;
        min-height: 100vh;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.875rem;
        line-height: 1.15;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.25rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }
    
    .hero-buttons .btn-large {
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        max-width: 300px;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem 0.875rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .mockup-cards {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        margin-bottom: 1rem;
    }
    
    .feature-card:hover,
    .testimonial-card:hover,
    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom automático en iOS */
        min-height: 48px;
        padding: 0.875rem 1rem;
        border-radius: 12px;
        border: 2px solid rgba(226, 232, 240, 0.8);
        transition: all 0.2s ease;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-600);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        outline: none;
    }
    
    .contact-form button {
        min-height: 56px;
        font-size: 1rem;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    /* Urgency Timer Mobile */
    .urgency-content {
        padding: 1rem;
    }
    
    .urgency-text h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .urgency-text p {
        font-size: 0.875rem;
    }
    
    .countdown-timer {
        gap: 0.25rem;
        justify-content: space-between;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.5rem 0.25rem;
    }
    
    .time-value {
        font-size: 1rem;
    }
    
    .time-label {
        font-size: 0.625rem;
    }
    
    .time-separator {
        font-size: 1rem;
        margin: 0 0.125rem;
    }
    
    .btn-urgency {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
    }
    
    .urgency-stats .stat-item {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .offer-timer {
        padding: 0.5rem;
        font-size: 0.75rem;
        margin: -1.5rem -1.5rem 0.5rem -1.5rem;
    }
    
    /* Real Software Demo Mobile */
    .software-tab {
        padding: 1rem;
        min-height: 600px;
    }
    
    .software-header,
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .software-actions,
    .analytics-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .repair-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .software-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-filter {
        min-width: auto;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .repairs-table-view {
        overflow-x: auto;
    }
    
    .repairs-table {
        min-width: 600px;
    }
    
    .repairs-grid {
        grid-template-columns: 1fr;
    }
    
    .main-analytics-stats {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .efficiency-section {
        padding: 1.5rem;
    }
}

/* ORIENTACIÓN LANDSCAPE EN MÓVIL */
@media screen and (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: var(--spacing-mobile-lg) 0;
        min-height: auto;
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .hero-badge {
        padding: 0.5rem 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: var(--font-size-mobile-3xl);
        line-height: 1.1;
        margin-bottom: var(--spacing-mobile-sm);
        letter-spacing: -0.02em;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-mobile-base);
        line-height: 1.3;
        margin-bottom: var(--spacing-mobile-md);
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-mobile-md);
        margin-top: var(--spacing-mobile-sm);
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-mobile-sm);
        max-width: 600px;
        margin-top: var(--spacing-mobile-md);
    }
    
    .nav-links {
        padding: 2rem 1rem 1rem;
    }
    
    .demo-section {
        padding: var(--spacing-mobile-md) 0;
    }
    
    /* Reduce altura de header en landscape */
    .header {
        padding: var(--spacing-mobile-xs) 0;
    }
    
    .nav-container {
        padding: var(--spacing-mobile-xs) var(--container-padding);
    }
}

/* MEJORAS ADICIONALES PARA MÓVILES MUY PEQUEÑOS */
@media (max-width: 360px) {
    :root {
        --container-padding-mobile: 0.75rem;
    }
    
    .hero h1 {
        font-size: var(--font-size-mobile-3xl);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-mobile-base);
    }
    
    .btn-primary, .btn-secondary, .btn-outline {
        padding: 0.75rem 1.25rem;
        font-size: var(--font-size-mobile-sm);
        min-height: var(--touch-target-size);
    }
    
    .section-header h2 {
        font-size: var(--font-size-mobile-2xl);
    }
    
    .pricing-card,
    .feature-card {
        padding: var(--spacing-mobile-md);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-mobile-sm);
    }
    
    .nav-container {
        padding: var(--spacing-mobile-sm) var(--container-padding-mobile);
    }
    
    /* Prevenir overflow horizontal en grids */
    .features-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-mobile-md);
        overflow-x: hidden;
    }
    
    /* Optimiza elementos anchos para móvil */
    .hero-stats,
    .countdown-container,
    .urgency-content {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* DARK MODE ELIMINADO - Solo se aplica a componentes de simulación específicos */

/* REDUCIR MOVIMIENTO PARA ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .nav-links {
        transition: none !important;
    }
    
    .floating-elements {
        display: none !important;
    }
    
    .btn-large:hover,
    .pricing-card:hover,
    .feature-card:hover {
        transform: none !important;
    }
}

/* CONTRASTE ALTO PARA ACCESIBILIDAD */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        border-width: 3px;
        font-weight: 700;
    }
    
    .nav-links a {
        border-width: 2px;
        border-color: var(--primary-600);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 3px;
    }
}

/* OPTIMIZACIONES iOS SAFARI */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links {
        -webkit-overflow-scrolling: touch;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        -webkit-appearance: none;
        border-radius: 12px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        -webkit-appearance: none;
        border-radius: 12px;
    }
}

/* PRINT STYLES */
@media print {
    .urgency-banner,
    .floating-elements,
    .demo-section,
    .nav-actions,
    .mobile-menu-toggle,
    .software-showcase {
        display: none !important;
    }
    
    .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .hero-visual,
    .dashboard-mockup {
        display: none !important;
    }
    
    .pricing-card,
    .feature-card,
    .testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 

/* =========================================
   NEW INVENTORY MANAGEMENT STYLES
========================================= */

.inventory-stats,
.technicians-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-percentage {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.inventory-controls,
.technicians-controls {
    margin-bottom: 2rem;
}

.search-filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.inventory-search-field,
.technicians-search-field {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: var(--border-radius-md);
    background: var(--bg-primary);
    font-size: var(--font-size-sm);
    transition: var(--transition-base);
}

.inventory-search-field:focus,
.technicians-search-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.inventory-table-container,
.technicians-table-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.inventory-table,
.technicians-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th,
.technicians-table th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.inventory-table td,
.technicians-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    vertical-align: middle;
}

.inventory-row,
.technician-row {
    transition: var(--transition-base);
}

.inventory-row:hover,
.technician-row:hover {
    background: rgba(37, 99, 235, 0.02);
}

.product-details h4 {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.product-sku {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-family: 'Courier New', monospace;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-weight: 500;
}

.price-value {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.price-value.cost {
    color: #dc2626;
}

.price-value.sale {
    color: #16a34a;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.stock-badge.good {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.stock-badge.critical {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.profit-info {
    text-align: center;
}

.profit-percentage {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.profit-amount {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.status-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.pagination-btn:not(:disabled):hover {
    background: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    padding: 0.5rem 1rem;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* =========================================
   TECHNICIANS SPECIFIC STYLES
========================================= */

.technician-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.technician-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.technician-details h4 {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.technician-id {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    font-family: 'Courier New', monospace;
}

.status-badge.very-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.repairs-count {
    text-align: center;
}

.repair-number {
    display: block;
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.repair-label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

.performance-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.performance-bar {
    flex: 1;
    height: 8px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #16a34a);
    border-radius: var(--border-radius-full);
    transition: width 0.5s ease;
}

.performance-percentage {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    min-width: 40px;
}

.last-activity {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

/* =========================================
   STAT CARD IMPROVEMENTS
========================================= */

.stat-card.purple-stat {
    border-left: 4px solid #8b5cf6;
}

.purple-stat .stat-icon {
    background: #f3e8ff;
    color: #7c3aed;
}

/* =========================================
   DARK THEME SUPPORT - SOLO PARA COMPONENTES DE SIMULACIÓN
   
   IMPORTANTE: El modo oscuro ÚNICAMENTE se aplica a:
   - .demo-interface.dark-theme
   - .real-software-demo.dark-theme  
   - .interactive-demo-container.dark-theme
   
   NO afecta al resto de la página web.
========================================= */

.demo-interface.dark-theme,
.real-software-demo.dark-theme,
.interactive-demo-container.dark-theme {
    background: #1f2937;
    color: #f9fafb;
}

.demo-interface.dark-theme .demo-sidebar,
.real-software-demo.dark-theme .demo-sidebar,
.interactive-demo-container.dark-theme .demo-sidebar {
    background: #111827;
    border-right-color: #374151;
}

.demo-interface.dark-theme .demo-content,
.real-software-demo.dark-theme .demo-content,
.interactive-demo-container.dark-theme .demo-content {
    background: #1f2937;
}

.demo-interface.dark-theme .stat-card,
.real-software-demo.dark-theme .stat-card,
.interactive-demo-container.dark-theme .stat-card {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .software-header,
.real-software-demo.dark-theme .software-header,
.interactive-demo-container.dark-theme .software-header {
    background: #1f2937;
    color: #f9fafb;
}

.demo-interface.dark-theme .software-title h1,
.real-software-demo.dark-theme .software-title h1,
.interactive-demo-container.dark-theme .software-title h1 {
    color: #f9fafb;
}

.demo-interface.dark-theme .software-title p,
.real-software-demo.dark-theme .software-title p,
.interactive-demo-container.dark-theme .software-title p {
    color: #d1d5db;
}

.demo-interface.dark-theme .inventory-table-container,
.demo-interface.dark-theme .technicians-table-container,
.demo-interface.dark-theme .repairs-table-view,
.real-software-demo.dark-theme .inventory-table-container,
.real-software-demo.dark-theme .technicians-table-container,
.real-software-demo.dark-theme .repairs-table-view,
.interactive-demo-container.dark-theme .inventory-table-container,
.interactive-demo-container.dark-theme .technicians-table-container,
.interactive-demo-container.dark-theme .repairs-table-view {
    background: #374151;
    border-color: #4b5563;
}

.demo-interface.dark-theme .inventory-table,
.demo-interface.dark-theme .technicians-table,
.demo-interface.dark-theme .repairs-table,
.real-software-demo.dark-theme .inventory-table,
.real-software-demo.dark-theme .technicians-table,
.real-software-demo.dark-theme .repairs-table,
.interactive-demo-container.dark-theme .inventory-table,
.interactive-demo-container.dark-theme .technicians-table,
.interactive-demo-container.dark-theme .repairs-table {
    background: #374151;
    color: #f9fafb;
}

.demo-interface.dark-theme .inventory-table th,
.demo-interface.dark-theme .technicians-table th,
.demo-interface.dark-theme .repairs-table th,
.real-software-demo.dark-theme .inventory-table th,
.real-software-demo.dark-theme .technicians-table th,
.real-software-demo.dark-theme .repairs-table th,
.interactive-demo-container.dark-theme .inventory-table th,
.interactive-demo-container.dark-theme .technicians-table th,
.interactive-demo-container.dark-theme .repairs-table th {
    background: #4b5563;
    color: #f9fafb;
    border-color: #6b7280;
}

.demo-interface.dark-theme .inventory-table td,
.demo-interface.dark-theme .technicians-table td,
.demo-interface.dark-theme .repairs-table td,
.real-software-demo.dark-theme .inventory-table td,
.real-software-demo.dark-theme .technicians-table td,
.real-software-demo.dark-theme .repairs-table td,
.interactive-demo-container.dark-theme .inventory-table td,
.interactive-demo-container.dark-theme .technicians-table td,
.interactive-demo-container.dark-theme .repairs-table td {
    border-color: #4b5563;
    color: #e5e7eb;
}

.demo-interface.dark-theme .inventory-row:hover,
.demo-interface.dark-theme .technician-row:hover,
.demo-interface.dark-theme .repair-row:hover,
.real-software-demo.dark-theme .inventory-row:hover,
.real-software-demo.dark-theme .technician-row:hover,
.real-software-demo.dark-theme .repair-row:hover,
.interactive-demo-container.dark-theme .inventory-row:hover,
.interactive-demo-container.dark-theme .technician-row:hover,
.interactive-demo-container.dark-theme .repair-row:hover {
    background: #4b5563;
}

.demo-interface.dark-theme .search-input-container,
.real-software-demo.dark-theme .search-input-container,
.interactive-demo-container.dark-theme .search-input-container {
    background: #374151;
}

.demo-interface.dark-theme .search-field,
.demo-interface.dark-theme .inventory-search-field,
.demo-interface.dark-theme .technicians-search-field,
.real-software-demo.dark-theme .search-field,
.real-software-demo.dark-theme .inventory-search-field,
.real-software-demo.dark-theme .technicians-search-field,
.interactive-demo-container.dark-theme .search-field,
.interactive-demo-container.dark-theme .inventory-search-field,
.interactive-demo-container.dark-theme .technicians-search-field {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .search-field::placeholder,
.demo-interface.dark-theme .inventory-search-field::placeholder,
.demo-interface.dark-theme .technicians-search-field::placeholder,
.real-software-demo.dark-theme .search-field::placeholder,
.real-software-demo.dark-theme .inventory-search-field::placeholder,
.real-software-demo.dark-theme .technicians-search-field::placeholder,
.interactive-demo-container.dark-theme .search-field::placeholder,
.interactive-demo-container.dark-theme .inventory-search-field::placeholder,
.interactive-demo-container.dark-theme .technicians-search-field::placeholder {
    color: #9ca3af;
}

.demo-interface.dark-theme .filter-dropdown select,
.real-software-demo.dark-theme .filter-dropdown select,
.interactive-demo-container.dark-theme .filter-dropdown select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .btn-outline,
.real-software-demo.dark-theme .btn-outline,
.interactive-demo-container.dark-theme .btn-outline {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .btn-outline:hover,
.real-software-demo.dark-theme .btn-outline:hover,
.interactive-demo-container.dark-theme .btn-outline:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.demo-interface.dark-theme .action-icon,
.real-software-demo.dark-theme .action-icon,
.interactive-demo-container.dark-theme .action-icon {
    background: #4b5563;
    color: #d1d5db;
}

.demo-interface.dark-theme .action-icon:hover,
.real-software-demo.dark-theme .action-icon:hover,
.interactive-demo-container.dark-theme .action-icon:hover {
    background: #6b7280;
}

.demo-interface.dark-theme .repair-card,
.real-software-demo.dark-theme .repair-card,
.interactive-demo-container.dark-theme .repair-card {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .card-header h3,
.demo-interface.dark-theme .card-content h4,
.real-software-demo.dark-theme .card-header h3,
.real-software-demo.dark-theme .card-content h4,
.interactive-demo-container.dark-theme .card-header h3,
.interactive-demo-container.dark-theme .card-content h4 {
    color: #f9fafb;
}

.demo-interface.dark-theme .equipment,
.demo-interface.dark-theme .product-sku,
.demo-interface.dark-theme .technician-id,
.real-software-demo.dark-theme .equipment,
.real-software-demo.dark-theme .product-sku,
.real-software-demo.dark-theme .technician-id,
.interactive-demo-container.dark-theme .equipment,
.interactive-demo-container.dark-theme .product-sku,
.interactive-demo-container.dark-theme .technician-id {
    color: #9ca3af;
}

.demo-interface.dark-theme .table-pagination,
.real-software-demo.dark-theme .table-pagination,
.interactive-demo-container.dark-theme .table-pagination {
    background: #4b5563;
    border-color: #6b7280;
}

.demo-interface.dark-theme .pagination-btn,
.real-software-demo.dark-theme .pagination-btn,
.interactive-demo-container.dark-theme .pagination-btn {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}

.demo-interface.dark-theme .pagination-btn:not(:disabled):hover,
.real-software-demo.dark-theme .pagination-btn:not(:disabled):hover,
.interactive-demo-container.dark-theme .pagination-btn:not(:disabled):hover {
    background: #3b82f6;
    color: #ffffff;
}

.demo-interface.dark-theme .section-title h1,
.demo-interface.dark-theme .section-header h1,
.real-software-demo.dark-theme .section-title h1,
.real-software-demo.dark-theme .section-header h1,
.interactive-demo-container.dark-theme .section-title h1,
.interactive-demo-container.dark-theme .section-header h1 {
    color: #f9fafb;
}

.demo-interface.dark-theme .section-title p,
.demo-interface.dark-theme .section-header p,
.real-software-demo.dark-theme .section-title p,
.real-software-demo.dark-theme .section-header p,
.interactive-demo-container.dark-theme .section-title p,
.interactive-demo-container.dark-theme .section-header p {
    color: #d1d5db;
}

/* Dark theme for software tabs */
.real-software-demo.dark-theme .software-tabs,
.interactive-demo-container.dark-theme .software-tabs {
    background: #1f2937;
}

.real-software-demo.dark-theme .tab-btn,
.interactive-demo-container.dark-theme .tab-btn {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
}

.real-software-demo.dark-theme .tab-btn.active,
.interactive-demo-container.dark-theme .tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

.real-software-demo.dark-theme .tab-btn:hover:not(.active),
.interactive-demo-container.dark-theme .tab-btn:hover:not(.active) {
    background: #4b5563;
}

/* Dark theme for analytics cards */
.demo-interface.dark-theme .analytics-card,
.real-software-demo.dark-theme .analytics-card,
.interactive-demo-container.dark-theme .analytics-card {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .big-number,
.real-software-demo.dark-theme .big-number,
.interactive-demo-container.dark-theme .big-number {
    color: #f9fafb;
}

.demo-interface.dark-theme .percentage,
.real-software-demo.dark-theme .percentage,
.interactive-demo-container.dark-theme .percentage {
    color: #9ca3af;
}

/* =========================================
   MOBILE RESPONSIVE FOR NEW SECTIONS
========================================= */

@media (max-width: 768px) {
    .inventory-stats,
    .technicians-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .search-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inventory-search-field,
    .technicians-search-field {
        min-width: auto;
        width: 100%;
    }
    
    .inventory-table-container,
    .technicians-table-container {
        overflow-x: auto;
    }
    
    .inventory-table,
    .technicians-table {
        min-width: 800px;
    }
    
    .technician-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .performance-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .performance-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .inventory-stats,
    .technicians-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .software-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .software-actions button {
        font-size: var(--font-size-xs);
        padding: 0.5rem 1rem;
    }
}

/* =========================================
   ENHANCED ANIMATIONS
========================================= */

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.software-tab.active {
    animation: slideInFromRight 0.3s ease-out;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.action-icon {
    transition: all 0.2s ease;
}

.action-icon:hover {
    transform: translateY(-1px);
}

/* =========================================
   ACCESSIBILITY IMPROVEMENTS
========================================= */

.action-icon:focus,
.pagination-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.status-badge {
}

/* =========================================
   ENHANCED ADVANCED METRICS STYLES
========================================= */

/* Metric Cards Enhanced */
.metric-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.metric-change .material-icons {
    font-size: 18px;
}

.metric-change .trend-up {
    color: var(--success);
}

.metric-change .trend-down {
    color: var(--info);
}

.stars-rating {
    display: flex;
    gap: 0.125rem;
}

.stars-rating .material-icons {
    font-size: 16px;
    color: #fbbf24;
}

/* Charts Section */
.charts-section {
    margin-top: 3rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detailed-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Chart Cards */
.chart-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-100);
}

.chart-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.chart-period {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.completed {
    background: var(--success);
}

.legend-color.pending {
    background: var(--orange-500);
}

/* Bar Charts */
.chart-container {
    position: relative;
    height: 240px;
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 0.5rem;
    padding: 1rem 0;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bar-group:hover {
    transform: translateY(-4px);
}

.bar-group.active .bar {
    background: linear-gradient(45deg, var(--primary-600), var(--primary-400));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(45deg, var(--primary-500), var(--primary-300));
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 4px;
}

.bar:hover::before {
    content: attr(data-value);
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-900);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: var(--font-size-xs);
    white-space: nowrap;
    z-index: 10;
}

.bar-label {
    margin-top: 0.5rem;
    font-size: var(--font-size-xs);
    color: var(--neutral-600);
    font-weight: 600;
}

.bar-total {
    margin-top: 0.25rem;
    font-size: var(--font-size-xs);
    color: var(--neutral-500);
}

/* Stacked Bars */
.chart-bars.stacked .bar-group {
    align-items: center;
}

.bar-stack {
    width: 100%;
    max-width: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

.bar-stack .bar.completed {
    background: linear-gradient(45deg, var(--success), #10b981);
    border-radius: 0;
}

.bar-stack .bar.pending {
    background: linear-gradient(45deg, var(--orange-500), #f97316);
    border-radius: 4px 4px 0 0;
}

/* Chart Summary */
.chart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-100);
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: var(--font-size-xs);
    color: var(--neutral-500);
    font-weight: 500;
}

.summary-value {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--neutral-900);
}

.summary-value.positive {
    color: var(--success);
}

/* Devices Chart */
.devices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.device-item:hover {
    background: var(--primary-50);
    transform: translateX(4px);
}

.device-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.device-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.device-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.device-name {
    font-weight: 600;
    color: var(--neutral-900);
    font-size: var(--font-size-sm);
}

.device-count {
    font-size: var(--font-size-xs);
    color: var(--neutral-500);
}

.device-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 100px;
}

.device-progress .progress-bar {
    flex: 1;
    height: 6px;
    background: var(--neutral-200);
    border-radius: 3px;
    overflow: hidden;
}

.device-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-percent {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
    min-width: 2.5rem;
    text-align: right;
}

/* Technicians Performance */
.technicians-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.technician-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.technician-item:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tech-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tech-name {
    font-weight: 700;
    color: var(--neutral-900);
    font-size: var(--font-size-base);
}

.tech-stats {
    font-size: var(--font-size-sm);
    color: var(--neutral-600);
}

.tech-performance {
    flex-shrink: 0;
}

/* Performance Ring */
.performance-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.performance-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--neutral-200);
    stroke-width: 2;
}

.ring-progress {
    fill: none;
    stroke: var(--primary-600);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--neutral-900);
}

/* Chart Tooltip */
.chart-tooltip {
    position: absolute;
    background: var(--neutral-900);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.chart-tooltip.visible {
    opacity: 1;
}

/* Responsive Design for Charts */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .chart-card {
        padding: 1rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .chart-legend {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .chart-bars {
        height: 160px;
        gap: 0.25rem;
    }
    
    .chart-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .device-item,
    .technician-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .device-progress {
        width: 100%;
        min-width: auto;
    }
    
    .tech-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 180px;
    }
    
    .chart-bars {
        height: 140px;
    }
    
    .bar {
        max-width: 32px;
    }
    
    .device-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.25rem;
    }
    
    .tech-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .performance-ring {
        width: 50px;
        height: 50px;
    }
}

/* =========================================
   DARK THEME SUPPORT FOR ADVANCED METRICS
========================================= */

.demo-interface.dark-theme .chart-card,
.real-software-demo.dark-theme .chart-card,
.interactive-demo-container.dark-theme .chart-card {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .chart-header h3,
.real-software-demo.dark-theme .chart-header h3,
.interactive-demo-container.dark-theme .chart-header h3 {
    color: #f9fafb;
}

.demo-interface.dark-theme .chart-period,
.real-software-demo.dark-theme .chart-period,
.interactive-demo-container.dark-theme .chart-period {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.demo-interface.dark-theme .device-item,
.demo-interface.dark-theme .technician-item,
.real-software-demo.dark-theme .device-item,
.real-software-demo.dark-theme .technician-item,
.interactive-demo-container.dark-theme .device-item,
.interactive-demo-container.dark-theme .technician-item {
    background: #4b5563;
    color: #f9fafb;
}

.demo-interface.dark-theme .device-item:hover,
.demo-interface.dark-theme .technician-item:hover,
.real-software-demo.dark-theme .device-item:hover,
.real-software-demo.dark-theme .technician-item:hover,
.interactive-demo-container.dark-theme .device-item:hover,
.interactive-demo-container.dark-theme .technician-item:hover {
    background: #6b7280;
}

.demo-interface.dark-theme .device-name,
.demo-interface.dark-theme .tech-name,
.real-software-demo.dark-theme .device-name,
.real-software-demo.dark-theme .tech-name,
.interactive-demo-container.dark-theme .device-name,
.interactive-demo-container.dark-theme .tech-name {
    color: #f9fafb;
}

.demo-interface.dark-theme .device-count,
.demo-interface.dark-theme .tech-stats,
.real-software-demo.dark-theme .device-count,
.real-software-demo.dark-theme .tech-stats,
.interactive-demo-container.dark-theme .device-count,
.interactive-demo-container.dark-theme .tech-stats {
    color: #d1d5db;
}

/* OPTIMIZACIONES iOS SAFARI */
.demo-interface.dark-theme .device-count,
.demo-interface.dark-theme .progress-percent {
    color: #9ca3af;
}

/* ===============================================
   NAVEGACIÓN ACTIVA PERSONALIZADA
   =============================================== */

/* Active navigation state for mobile within @media (max-width: 768px) */
@media (max-width: 768px) {
    .nav-links a.active {
        background: var(--primary-blue) !important;
        color: white !important;
        border: none !important;
        font-weight: 600 !important;
        transform: translateX(4px) !important;
        border-radius: 25px !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-size: var(--font-size-mobile-sm) !important;
        padding: 0.75rem 1.25rem !important;
    }
}

@media (max-width: 768px) {
    /* Logo responsive styles */
    .logo {
        padding: 0.25rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
    }
    
    .logo-icon .material-icons {
        font-size: 1.25rem;
    }
    
    .logo-accent {
        width: 6px;
        height: 6px;
        top: 4px;
        right: 4px;
        border-width: 1px;
    }
    
    .logo-main {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    }
    
    .logo-sub {
        font-size: 0.75rem;
    }

    .urgency-content {
        padding: 1rem;
    }
}

/* ===============================================
   LOGO MEJORADO - ESTILOS RESPONSIVOS
   =============================================== */

/* Estilos generales adicionales para el logo */
.logo-icon:hover .material-icons {
    transform: scale(1.1) rotate(5deg);
    transition: var(--transition-fast);
}

.logo-text:hover .logo-main {
    background: linear-gradient(135deg, var(--primary-blue-dark), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile responsivo para logo */
@media (max-width: 768px) {
    .header .logo {
        padding: 0.25rem;
        gap: 0.5rem;
    }
    
    .header .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
    }
    
    .header .logo-icon .material-icons {
        font-size: 1.25rem;
    }
    
    .header .logo-accent {
        width: 6px;
        height: 6px;
        top: 4px;
        right: 4px;
        border-width: 1px;
    }
    
    .header .logo-main {
        font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    }
    
    .header .logo-sub {
        font-size: 0.75rem;
    }
}

/* Móvil muy pequeño */
@media (max-width: 480px) {
    .header .logo {
        gap: 0.375rem;
    }
    
    .header .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .header .logo-icon .material-icons {
        font-size: 1.125rem;
    }
    
    .header .logo-main {
        font-size: 1rem;
    }
    
    .header .logo-sub {
        font-size: 0.6875rem;
    }
}

/* ===============================================
   BOTÓN FLOTANTE DE WHATSAPP - DISCRETO
   =============================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    user-select: none;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 
        0 4px 12px rgba(37, 211, 102, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(37, 211, 102, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2de06f, #1aa861);
}

.whatsapp-btn:active {
    transform: scale(1.05);
    transition: all 0.1s ease;
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover svg {
    transform: scale(1.1);
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ========== ACCESIBILIDAD ========== */

@media (prefers-reduced-motion: reduce) {
    .whatsapp-btn {
        transition: none;
    }
    
    .whatsapp-btn:hover {
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .whatsapp-btn {
        background: #25d366;
        border: 2px solid #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    }
    
    .whatsapp-btn:hover {
        background: #128c7e;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
    }
}

/* Nuevas Gráficas - Estilos para Barras Verticales */
.bar-chart-container {
    position: relative;
    height: 280px;
    padding: 1rem;
}

.chart-y-axis {
    position: absolute;
    left: 0;
    top: 1rem;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--neutral-500);
    font-weight: 600;
    width: 40px;
}

.bar-chart {
    margin-left: 50px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.5rem;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bar {
    width: 100%;
    max-width: 45px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    animation: barGrow 0.8s ease-out;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.bar:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.bar-value {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neutral-700);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bar:hover .bar-value {
    opacity: 1;
}

.bar-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
}

@keyframes barGrow {
    from {
        height: 0;
    }
    to {
        height: var(--bar-height, 50%);
    }
}

/* Gráfica de Torta */
.pie-chart-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pie-chart {
    position: relative;
    flex-shrink: 0;
}

.pie-chart svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.pie-chart circle {
    transition: all 0.3s ease;
}

.pie-chart circle:hover {
    filter: brightness(1.1);
    stroke-width: 45;
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.total-repairs {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1;
}

.total-label {
    font-size: 0.75rem;
    color: var(--neutral-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.pie-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
}

.pie-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--neutral-50);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pie-stat-item:hover {
    background: var(--neutral-100);
    transform: translateX(4px);
}

.stat-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-name {
    font-weight: 600;
    color: var(--neutral-800);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 0.75rem;
    color: var(--neutral-600);
    font-weight: 500;
}

/* Gráfica de Barras Horizontales */
.horizontal-bar-chart {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.h-bar-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.h-bar-label {
    min-width: 80px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-align: right;
}

.h-bar-container {
    flex: 1;
    height: 32px;
    background: var(--neutral-100);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.h-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    border-radius: 16px;
    position: relative;
    transition: all 0.4s ease;
    animation: hBarGrow 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.h-bar:hover {
    background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.h-bar-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes hBarGrow {
    from {
        width: 0;
    }
    to {
        width: var(--bar-width, 50%);
    }
}

/* Información de gráficas */
.chart-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.chart-info .material-icons {
    font-size: 1rem;
    color: var(--neutral-500);
}

/* Leyenda mejorada */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--neutral-700);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.legend-item:hover {
    background-color: var(--neutral-50);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Responsive Design para nuevas gráficas */
@media (max-width: 1024px) {
    .pie-chart-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pie-chart svg {
        width: 250px;
        height: 250px;
    }
    
    .pie-center {
        width: 100px;
        height: 100px;
    }
    
    .total-repairs {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bar-chart {
        gap: 0.5rem;
        margin-left: 40px;
    }
    
    .chart-y-axis {
        width: 35px;
    }
    
    .bar {
        max-width: 35px;
    }
    
    .pie-chart svg {
        width: 200px;
        height: 200px;
    }
    
    .pie-center {
        width: 80px;
        height: 80px;
    }
    
    .total-repairs {
        font-size: 1.25rem;
    }
    
    .total-label {
        font-size: 0.625rem;
    }
    
    .h-bar-label {
        min-width: 60px;
        font-size: 0.75rem;
    }
    
    .h-bar-container {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .bar-chart-container {
        height: 240px;
    }
    
    .bar-chart {
        height: 160px;
        margin-left: 30px;
    }
    
    .chart-y-axis {
        width: 25px;
        font-size: 0.625rem;
    }
    
    .pie-chart-container {
        padding: 0.5rem;
    }
    
    .pie-stats {
        gap: 0.75rem;
    }
    
    .pie-stat-item {
        padding: 0.5rem;
    }
}

/* ====================================
   ESTADÍSTICAS MEJORADAS STYLES
   ==================================== */

/* Gráfica principal de ingresos */
.main-revenue-chart {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.main-revenue-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.main-revenue-chart .chart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-revenue-chart .chart-header h3::before {
    content: '📊';
    font-size: 1.25rem;
}

.revenue-chart-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.revenue-bar-chart {
    display: flex;
    align-items: end;
    gap: 1.5rem;
    flex: 1;
    padding: 1rem 0;
    min-height: 300px;
}

.revenue-bar-chart .bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.revenue-bar-chart .bar-group.active {
    transform: scale(1.05);
}

.revenue-bar {
    width: 100%;
    max-width: 60px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.revenue-bar:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.revenue-bar.current {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.revenue-bar.current:hover {
    background: linear-gradient(135deg, var(--green-400), var(--green-500));
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.revenue-bar .bar-value {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.revenue-bar:hover .bar-value {
    opacity: 1;
}

.bar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-900);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    margin-bottom: 0.5rem;
}

.bar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--neutral-900);
}

.revenue-bar:hover .bar-tooltip {
    opacity: 1;
    visibility: visible;
}

.revenue-bar-chart .bar-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    text-align: center;
}

.chart-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-300);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.summary-value {
    font-weight: 700;
    color: var(--neutral-900);
    font-size: 1rem;
}

.summary-value.positive {
    color: var(--green-600);
}

.summary-value.total {
    color: var(--primary-600);
    font-size: 1.125rem;
}

@media (max-width: 1024px) {
    .revenue-chart-container {
        flex-direction: column;
    }
    
    .chart-y-axis {
        display: none;
    }
    
    .revenue-bar-chart {
        min-height: 250px;
        gap: 1rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .main-revenue-chart {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .main-revenue-chart .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .chart-controls {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .chart-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .revenue-bar-chart {
        min-height: 200px;
        gap: 0.75rem;
    }
    
    .revenue-bar {
        max-width: 40px;
    }
    
    .revenue-bar-chart .bar-label {
        font-size: 0.75rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
}

/* ====================================
   CLIENTES TAB STYLES
   ==================================== */

/* Grid de clientes mejorado */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.client-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-300);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card:hover::before {
    opacity: 1;
}

/* Header de la tarjeta de cliente */
.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    position: relative;
}

.client-avatar.new {
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.client-avatar.new::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--green-500);
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.client-avatar.inactive {
    background: linear-gradient(135deg, var(--neutral-400), var(--neutral-300));
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.client-actions {
    display: flex;
    gap: 0.5rem;
}

/* Información del cliente */
.client-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.client-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.contact-item .material-icons {
    font-size: 1rem;
    color: var(--neutral-500);
}

.contact-item span:last-child {
    font-weight: 500;
}

/* Estadísticas del cliente */
.client-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--neutral-100);
    border-bottom: 1px solid var(--neutral-100);
}

.client-stats .stat {
    text-align: center;
}

.client-stats .stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.client-stats .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer de la tarjeta */
.client-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.client-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.frequent {
    background: var(--orange-100);
    color: var(--orange-700);
}

.badge.vip {
    background: var(--purple-100);
    color: var(--purple-700);
}

.badge.active {
    background: var(--green-100);
    color: var(--green-700);
}

.badge.new {
    background: var(--blue-100);
    color: var(--blue-700);
    animation: pulse 2s infinite;
}

.badge.satisfied {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.badge.premium {
    background: var(--amber-100);
    color: var(--amber-700);
}

.badge.inactive {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.badge.potential {
    background: var(--cyan-100);
    color: var(--cyan-700);
}

.last-visit {
    font-size: 0.75rem;
    color: var(--neutral-500);
    font-style: italic;
}

/* Tendencias en estadísticas */
.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.stat-trend .material-icons {
    font-size: 0.875rem;
}

.stat-trend .trend-up {
    color: var(--green-600);
}

.stat-trend .trend-down {
    color: var(--red-600);
}

/* Controles de vista mejorados */
.view-toggle {
    display: flex;
    background: var(--neutral-100);
    border-radius: 8px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.view-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: var(--white);
    color: var(--primary-600);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-btn:hover:not(.active) {
    color: var(--neutral-800);
    background: var(--neutral-50);
}

/* Estados especiales de tarjetas */
.client-card[data-client-type="new"] {
    border-color: var(--green-200);
}

.client-card[data-client-type="frequent"] {
    border-color: var(--orange-200);
}

.client-card[data-client-type="inactive"] {
    border-color: var(--neutral-300);
    opacity: 0.8;
}

/* Filtros específicos para clientes */
.filter-group .filter-dropdown select {
    min-width: 160px;
}

/* Responsive Design para clientes */
@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1rem;
    }
    
    .client-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .client-actions {
        align-self: flex-end;
    }
    
    .client-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: left;
    }
    
    .client-stats .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .client-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .client-card {
        padding: 1rem;
    }
    
    .client-avatar {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .client-info h3 {
        font-size: 1.125rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .client-badges {
        gap: 0.25rem;
    }
    
    .badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Dark theme para clientes */
.demo-interface.dark-theme .client-card {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
    color: var(--neutral-100);
}

.demo-interface.dark-theme .client-card:hover {
    border-color: var(--primary-400);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.demo-interface.dark-theme .client-info h3 {
    color: var(--neutral-100);
}

.demo-interface.dark-theme .contact-item {
    color: var(--neutral-300);
}

.demo-interface.dark-theme .contact-item .material-icons {
    color: var(--neutral-400);
}

.demo-interface.dark-theme .client-stats {
    border-color: var(--neutral-700);
}

.demo-interface.dark-theme .client-stats .stat-value {
    color: var(--neutral-100);
}

.demo-interface.dark-theme .client-stats .stat-label {
    color: var(--neutral-400);
}

.demo-interface.dark-theme .last-visit {
    color: var(--neutral-400);
}

.demo-interface.dark-theme .view-toggle {
    background: var(--neutral-700);
}

.demo-interface.dark-theme .view-btn {
    color: var(--neutral-300);
}

.demo-interface.dark-theme .view-btn.active {
    background: var(--neutral-600);
    color: var(--primary-400);
}

.demo-interface.dark-theme .view-btn:hover:not(.active) {
    background: var(--neutral-600);
    color: var(--neutral-100);
}

/* ====================================
   REPORTES AVANZADOS STYLES
   ==================================== */

/* Sección de reportes avanzados */
.advanced-reports {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
}

.advanced-reports .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.advanced-reports .section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.report-actions {
    display: flex;
    gap: 1rem;
}

/* Tabs de reportes */
.reports-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.25rem;
    background: var(--neutral-100);
    border-radius: 10px;
}

.report-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--neutral-600);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.report-tab.active {
    background: var(--white);
    color: var(--primary-600);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.report-tab:hover:not(.active) {
    color: var(--neutral-800);
    background: rgba(255, 255, 255, 0.5);
}

.report-tab .material-icons {
    font-size: 1.25rem;
}

/* Contenido de reportes */
.report-content {
    display: none;
}

.report-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.report-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.report-card-mini {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.report-card-mini h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

.report-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.report-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.report-trend.positive {
    color: var(--green-600);
}

.report-trend.negative {
    color: var(--red-600);
}

.report-trend.neutral {
    color: var(--neutral-600);
}

.report-trend .material-icons {
    font-size: 1rem;
}

/* Gráficos mini */
.mini-chart-container {
    height: 80px;
    margin-top: 1rem;
}

/* Desgloses específicos */
.profit-breakdown,
.pending-breakdown,
.efficiency-metrics,
.productivity-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profit-item,
.pending-item,
.metric-item,
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 0.875rem;
}

.profit-item:last-child,
.pending-item:last-child,
.metric-item:last-child,
.ranking-item:last-child {
    border-bottom: none;
}

.pending-amount.good {
    color: var(--green-600);
    font-weight: 600;
}

.pending-amount.warning {
    color: var(--yellow-600);
    font-weight: 600;
}

.pending-amount.danger {
    color: var(--red-600);
    font-weight: 600;
}

/* Gráfico de capacidad */
.capacity-chart {
    margin-top: 1rem;
}

.capacity-bar {
    width: 100%;
    height: 8px;
    background: var(--neutral-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.capacity-info {
    font-size: 0.75rem;
    color: var(--neutral-600);
    text-align: center;
}

/* Ranking de productividad */
.ranking-item {
    padding: 0.75rem 0;
}

.rank {
    font-weight: 700;
    color: var(--primary-600);
    width: 1.5rem;
}

.tech-name {
    flex: 1;
    font-weight: 500;
}

.tech-score {
    font-weight: 600;
    color: var(--green-600);
}

/* Placeholder para reportes */
.report-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--neutral-600);
}

.report-placeholder .material-icons {
    font-size: 4rem;
    color: var(--neutral-400);
    margin-bottom: 1rem;
}

.report-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0 0 0.5rem 0;
}

.report-placeholder p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Responsive para reportes */
@media (max-width: 1024px) {
    .reports-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .reports-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .report-tab {
        flex: none;
        min-width: 140px;
    }
    
    .report-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .advanced-reports {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .advanced-reports .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .report-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .report-actions button {
        flex: 1;
    }
    
    .reports-tabs {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 0.25rem;
    }
    
    .report-tab {
        justify-content: flex-start;
        padding: 1rem;
        background: var(--neutral-50);
        border: 1px solid var(--neutral-200);
    }
    
    .report-tab.active {
        background: var(--primary-50);
        border-color: var(--primary-200);
    }
    
    .report-value-large {
        font-size: 2rem;
    }
    
    .report-placeholder {
        padding: 2rem 1rem;
    }
    
    .report-placeholder .material-icons {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .advanced-reports {
        padding: 1rem;
    }
    
    .report-card-mini {
        padding: 1rem;
    }
    
    .report-value-large {
        font-size: 1.75rem;
    }
    
    .profit-item,
    .pending-item,
    .metric-item,
    .ranking-item {
        font-size: 0.8rem;
    }
}

/* Dark theme para reportes */
.demo-interface.dark-theme .advanced-reports {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
}

.demo-interface.dark-theme .advanced-reports .section-header {
    border-color: var(--neutral-700);
}

.demo-interface.dark-theme .advanced-reports .section-header h3 {
    color: var(--neutral-100);
}

.demo-interface.dark-theme .reports-tabs {
    background: var(--neutral-700);
}

.demo-interface.dark-theme .report-tab {
    color: var(--neutral-300);
}

.demo-interface.dark-theme .report-tab.active {
    background: var(--neutral-600);
    color: var(--primary-400);
}

.demo-interface.dark-theme .report-tab:hover:not(.active) {
    background: var(--neutral-600);
    color: var(--neutral-100);
}

.demo-interface.dark-theme .report-card-mini {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
}

.demo-interface.dark-theme .report-card-mini:hover {
    border-color: var(--primary-400);
}

.demo-interface.dark-theme .report-card-mini h4 {
    color: var(--neutral-400);
}

.demo-interface.dark-theme .report-value-large {
    color: var(--neutral-100);
}

.demo-interface.dark-theme .profit-item,
.demo-interface.dark-theme .pending-item,
.demo-interface.dark-theme .metric-item,
.demo-interface.dark-theme .ranking-item {
    border-color: var(--neutral-700);
    color: var(--neutral-300);
}

.demo-interface.dark-theme .capacity-bar {
    background: var(--neutral-700);
}

.demo-interface.dark-theme .capacity-info {
    color: var(--neutral-400);
}

.demo-interface.dark-theme .report-placeholder {
    color: var(--neutral-400);
}

.demo-interface.dark-theme .report-placeholder .material-icons {
    color: var(--neutral-600);
}

.demo-interface.dark-theme .report-placeholder h3 {
    color: var(--neutral-200);
}/* Alerts disabled */
.floating-card.notification,
.urgency-banner,
.alert-card,
.inventory-alerts {
    display: none !important;
}

