        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
            overflow-x: hidden;
        }

        :root {
            /* Escala de zoom global (modificable por usuario) */
            --font-scale: 1.0;

            /* Colores corporativos Winoa */
            --winoa-green: #59d88f;
            --winoa-green-light: #e8f8f0;
            --winoa-green-dark: #3db872;
            --winoa-green-glow: rgba(89, 216, 143, 0.3);

            --winoa-orange: #f15a24;
            --winoa-orange-light: #fff4f0;
            --winoa-orange-dark: #c1471c;
            --winoa-orange-glow: rgba(241, 90, 36, 0.3);

            --winoa-dark-blue: #1e2e6c;
            --winoa-blue-light: #e8ebf5;

            --winoa-magenta: #a00c84;
            --winoa-magenta-light: #fce8f9;
            --winoa-magenta-dark: #7a0963;

            /* Colores ABP */
            --abp1-color: #1e2e6c;
            --abp1-light: #e8ebf5;
            --abp1-dark: #152247;
            --abp1-glow: rgba(30, 46, 108, 0.3);

            --abp2-color: #a00c84;
            --abp2-light: #fce8f9;
            --abp2-dark: #7a0963;
            --abp2-glow: rgba(160, 12, 132, 0.3);

            /* Colores luminosos y modernos */
            --background: #fafbfc;
            --surface: #ffffff;
            --surface-hover: #f5f7fa;
            --border: #e1e4e8;
            --border-light: #eaecef;

            /* Textos */
            --text-primary: #1a1f36;
            --text-secondary: #697386;
            --text-tertiary: #9ca3af;

            /* Estados */
            --error: #dc3545;
            --error-dark: #b01828;
            --success: #59d88f;
            --warning: #ffc107;
            --info: #0dcaf0;

            /* Sombras sutiles */
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
            --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
            --shadow-colored: 0 8px 24px rgba(89, 216, 143, 0.15);

            /* Transiciones suaves */
            --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

            /* Focus ring moderno */
            --focus-ring: 0 0 0 3px rgba(89, 216, 143, 0.4);
        }

        /* ========== MEJORAS ESTÉTICAS GLOBALES ========== */

        /* Animación del gradiente */
        @keyframes gradient-shift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Focus ring moderno */
        *:focus-visible {
            outline: none;
            box-shadow: var(--focus-ring);
        }

        /* Transiciones suaves */
        .btn, .card, .form-block {
            transition: transform var(--transition-normal), box-shadow var(--transition-normal);
        }

        input, select, textarea {
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
        }

        /* Hover lift en cards */
        .card:hover, .form-block:hover, .log-entry:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* Focus en inputs */
        input:focus, select:focus, textarea:focus {
            border-color: var(--winoa-green);
            box-shadow: var(--focus-ring);
        }

        /* Botones con efecto presión */
        .btn:active {
            transform: translateY(1px) scale(0.98);
        }

        /* Scroll suave global */
        html {
            scroll-behavior: smooth;
        }

        /* Iconos con animación hover */
        .btn:hover .icon,
        .nav-item:hover .icon,
        a:hover > span[class*="icon"],
        button:hover > span:first-child {
            transform: scale(1.15);
            transition: transform var(--transition-fast);
        }

        /* Links con efecto de color animado */
        .content a:not(.btn):not(.no-underline),
        table a:not(.btn):not(.no-underline),
        [class*="table"] a:not(.btn):not(.no-underline) {
            text-decoration: none;
            color: var(--text-primary);
            background: linear-gradient(90deg, var(--winoa-green) 50%, var(--text-primary) 50%);
            background-size: 200% 100%;
            background-position: 100% 0;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: background-position 0.3s ease-out;
        }

        .content a:not(.btn):not(.no-underline):hover,
        table a:not(.btn):not(.no-underline):hover,
        [class*="table"] a:not(.btn):not(.no-underline):hover {
            background-position: 0 0;
        }

        /* Skeleton loader mejorado */
        .skeleton {
            background: linear-gradient(
                90deg,
                var(--border-light) 0%,
                var(--surface) 50%,
                var(--border-light) 100%
            );
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s ease-in-out infinite;
            border-radius: 4px;
        }

        /* Zebra stripes en tablas (global) */
        table tbody tr:nth-child(even) td,
        [class*="table"] tbody tr:nth-child(even) td {
            background-color: rgba(0, 0, 0, 0.02) !important;
        }

        /* Hover en filas de tabla (global) */
        table tbody tr:hover td,
        [class*="table"] tbody tr:hover td {
            background-color: rgba(0, 0, 0, 0.04) !important;
            transition: background-color var(--transition-fast);
        }

        /* Sombra en dropdowns */
        .dropdown-menu, .multiselect-dropdown, [class*="dropdown"] > ul {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
            border: 1px solid var(--border-light);
            border-radius: 8px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            background: var(--background);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            /* Aplicar zoom global (como Ctrl + en navegador) */
            zoom: var(--font-scale);
            /* Fallback para Firefox que no soporta zoom */
            -moz-transform: scale(var(--font-scale));
            -moz-transform-origin: 0 0;
        }

        /* Header unificado TODO EN UNA LÍNEA - MÁS COMPACTO */
        .header-container {
            position: sticky;
            top: 0;
            z-index: 100;
            background: linear-gradient(135deg, #ffffff 0%, #f8fffe 50%, #f0fdf8 100%);
            box-shadow: 0 4px 20px rgba(89, 216, 143, 0.08);
            backdrop-filter: blur(10px);
            padding: 0.5rem 2.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
        }

        /* Borde inferior animado del header */
        .header-container::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--winoa-green), var(--winoa-magenta), var(--winoa-orange), var(--winoa-green));
            background-size: 200% 100%;
            animation: gradient-shift 8s ease-in-out infinite;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;
            text-decoration: none;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--winoa-green), var(--winoa-green-dark));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 4px 12px var(--winoa-green-glow);
            animation: pulse 2s infinite;
        }

        .logo-icon-img {
            width: 32px;
            /* Reducido de 36px */
            height: 32px;
            /* Reducido de 36px */
            object-fit: contain;
            padding: 6px;
            background: linear-gradient(135deg, rgba(89, 216, 143, 0.1), rgba(160, 12, 132, 0.1));
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
            box-shadow:
                0 0 20px rgba(89, 216, 143, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            animation: pulse 2s infinite;
            transition: all 0.3s ease;
        }

        .logo-icon-img:hover {
            transform: scale(1.05);
            box-shadow:
                0 0 30px rgba(89, 216, 143, 0.5),
                0 6px 16px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        .energia-badge {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1.1;
            padding: 0.25rem 0.5rem;
            border-radius: 8px;
            text-decoration: none;
            white-space: nowrap;
            transition: background 0.2s ease;
        }

        .energia-badge:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        .energia-badge-valor {
            font-size: 1rem;
            font-weight: 700;
            color: var(--winoa-magenta);
        }

        .energia-badge-flecha {
            margin-left: 0.25rem;
            font-size: 0.7rem;
        }

        .energia-badge-flecha.sube {
            color: #dc2626;
        }

        .energia-badge-flecha.baja {
            color: #16a34a;
        }

        .energia-badge-flecha.igual {
            color: var(--text-secondary);
        }

        .energia-badge-ud {
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        @media (max-width: 768px) {
            .energia-badge {
                padding: 0.1rem 0.25rem;
            }

            /* En móvil un script pasa title a data-tooltip y mobile.css oculta [data-tooltip] */
            .energia-badge[data-tooltip] {
                display: flex !important;
                visibility: visible !important;
                opacity: 1 !important;
                pointer-events: auto !important;
            }

            .energia-badge-valor {
                font-size: 1.05rem;
            }

            .energia-badge-ud {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 480px) {
            .header-container {
                gap: 8px !important;
            }

            .mobile-search-btn {
                margin-right: 0 !important;
            }

            .energia-badge {
                padding: 0;
            }

            .energia-badge-rayo {
                display: none;
            }
        }

        .logo-main {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .logo-text {
            font-size: 1.6rem;
            font-weight: 800;
            letter-spacing: -1px;
            background: linear-gradient(135deg, var(--winoa-green) 0%, var(--winoa-magenta) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 3s infinite;
        }

        .logo-signature {
            font-family: 'Caveat', cursive;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-secondary);
            opacity: 0.65;
            margin-top: 2px;
            margin-left: 0;
            letter-spacing: 0.5px;
            position: relative;
            display: block;
            text-align: center;
        }

        .logo-signature::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 1.5px;
            background: var(--text-secondary);
            opacity: 0.4;
            border-radius: 2px;
        }

        .logo:hover .logo-signature {
            text-decoration: none;
        }

        /* Weather badge and container */
        .logo-signature-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            justify-content: center;
        }

        .logo-signature-text {
            font-family: 'Caveat', cursive;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-secondary);
            opacity: 0.65;
        }

        .weather-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.15rem 0.4rem;
            background: transparent;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            text-decoration: none;
            opacity: 0.7;
        }

        .weather-badge:hover {
            background: rgba(0, 0, 0, 0.05);
            transform: scale(1.05);
            opacity: 1;
        }

        #weather-icon {
            font-size: 0.85rem;
        }

        /* Weather Alert Indicator - Attention grabbing */
        .weather-alert-indicator {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            margin-left: 0.2rem;
            animation: alertPulse 1s ease-in-out infinite;
            filter: drop-shadow(0 0 4px rgba(255, 100, 0, 0.9));
        }

        @keyframes alertPulse {
            0%, 100% {
                transform: scale(1);
                filter: drop-shadow(0 0 3px rgba(255, 100, 0, 0.7));
            }
            50% {
                transform: scale(1.3);
                filter: drop-shadow(0 0 8px rgba(255, 50, 0, 1));
            }
        }

        .weather-badge.has-alert {
            background: linear-gradient(135deg, #fff3e0, #ffcc80) !important;
            border-color: rgba(255, 152, 0, 0.5) !important;
            animation: badgeGlow 1.5s ease-in-out infinite;
        }

        @keyframes badgeGlow {
            0%, 100% {
                box-shadow: 0 0 5px rgba(255, 152, 0, 0.4);
            }
            50% {
                box-shadow: 0 0 15px rgba(255, 100, 0, 0.8);
            }
        }

        @keyframes shimmer {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.8;
            }
        }

        .user-section {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-shrink: 0;
        }

        .notifications {
            position: relative;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 1.2rem;
            padding: 0.6rem;
            border-radius: 12px;
            transition: all 0.3s;
            background: linear-gradient(135deg, transparent, rgba(89, 216, 143, 0.05));
        }

        .notifications:hover {
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-magenta-light));
            color: var(--winoa-green-dark);
            transform: scale(1.1) rotate(10deg);
        }

        .notifications .badge {
            position: absolute;
            top: 0;
            right: 0;
            background: linear-gradient(135deg, var(--winoa-orange), #d94d1a);
            color: white;
            font-size: 0.55rem;
            padding: 2px 4px;
            border-radius: 8px;
            font-weight: 600;
            border: 1.5px solid var(--surface);
            box-shadow: 0 2px 8px var(--winoa-orange-glow);
            animation: bounce 2s infinite;
            min-width: 16px;
            text-align: center;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-3px);
            }
        }

        /* Dropdown de notificaciones */
        .notifications-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            min-width: 280px;
            z-index: 1000;
            overflow: hidden;
        }

        .notifications-header {
            padding: 0.75rem 1rem;
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-magenta-light));
            border-bottom: 1px solid var(--border);
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        .notifications-body {
            padding: 0.5rem 0;
        }

        .notification-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: background 0.2s;
            border-bottom: 1px solid var(--border-light);
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-item:hover {
            background: var(--surface-hover);
        }

        .notification-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .notification-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .notification-title {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        .notification-count {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .notification-count span {
            font-weight: 600;
            color: var(--winoa-orange);
        }

        .notification-clear-btn {
            background: transparent;
            border: none;
            color: var(--text-tertiary);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            transition: all 0.2s;
            line-height: 1;
            flex-shrink: 0;
        }

        .notification-clear-btn:hover {
            background: var(--error-light);
            color: var(--error);
            transform: scale(1.1);
        }

        .notifications-footer {
            padding: 0.5rem 1rem;
            background: var(--surface-hover);
            border-top: 1px solid var(--border);
            text-align: center;
            color: var(--text-tertiary);
        }

        /* ===== BADGES DE NOTIFICACIONES EN MENU (diagonal arriba-derecha) ===== */
        /* Los enlaces necesitan position relative y padding para el badge */
        .nav-menu>ul>li>a {
            position: relative;
            padding-right: 8px;
        }

        .menu-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: 8px;
            font-size: 0.6rem;
            font-weight: 600;
            color: white;
            z-index: 10;
        }

        /* Badge OT - Azul oscuro corporativo */
        .menu-badge-ordenes {
            background: var(--winoa-dark-blue);
        }

        /* Badge Compras - Magenta corporativo */
        .menu-badge-compras {
            background: var(--winoa-magenta);
        }

        /* Badge Logbook - Verde corporativo */
        .menu-badge-logbook {
            background: var(--winoa-green-dark);
        }

        /* Badge Connect/Teams - Naranja corporativo */
        .menu-badge-teams {
            background: var(--winoa-orange);
        }

        /* Ajuste para badges en submenu - inline, no absoluto */
        .submenu li a {
            position: relative;
        }

        .submenu .menu-badge {
            position: relative;
            top: auto;
            right: auto;
            transform: none;
            margin-left: 6px;
        }

        .user-info {
            position: relative;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            padding: 0.5rem 1.2rem;
            border-radius: 50px;
            transition: all 0.3s;
            border: 2px solid transparent;
            background: linear-gradient(135deg, rgba(89, 216, 143, 0.05), rgba(160, 12, 132, 0.05));
        }

        .user-info:hover {
            border-color: var(--winoa-green);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px var(--winoa-green-glow);
        }

        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--winoa-green), var(--winoa-magenta));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 0.9rem;
            box-shadow: 0 4px 12px var(--winoa-green-glow);
            border: 2px solid white;
        }

        .user-details {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-primary);
            line-height: 1.3;
        }

        .user-role {
            font-size: 0.75rem;
            color: var(--text-secondary);
            line-height: 1.3;
        }

        /* Dropdown de usuario */
        .user-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            min-width: 200px;
            z-index: 1000;
            overflow: hidden;
        }

        .user-dropdown.show {
            display: block;
        }

        .user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.875rem 1.25rem;
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.2s;
            border-bottom: 1px solid var(--border);
        }

        .user-dropdown-item:last-child {
            border-bottom: none;
        }

        .user-dropdown-item:hover {
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-magenta-light));
            color: var(--winoa-green-dark);
        }

        .dropdown-icon {
            font-size: 1.1rem;
            opacity: 0.8;
        }

        /* Menú horizontal EN LA MISMA LÍNEA */
        .nav-menu {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        .nav-menu ul {
            list-style: none;
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }

        .nav-menu li {
            flex-shrink: 0;
            position: relative;
        }

        .nav-menu a {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            /* Reducido de 0.75rem 1rem */
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.85rem;
            /* Reducido de 0.9rem */
            transition: all 0.3s ease;
            white-space: nowrap;
            border-radius: 8px;
            position: relative;
            overflow: visible;
            /* Permitir que badges se vean fuera del enlace */
        }

        .nav-menu a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-magenta-light));
            opacity: 0;
            transition: opacity 0.3s;
            z-index: -1;
        }

        .nav-menu a:hover::before {
            opacity: 0.5;
        }

        .nav-menu a:hover {
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        .nav-menu a.active {
            color: var(--winoa-green-dark);
            background: linear-gradient(135deg, var(--winoa-green-light), rgba(160, 12, 132, 0.08));
            font-weight: 600;
        }

        .nav-menu .has-submenu>a::after {
            content: '▼';
            font-size: 0.65rem;
            margin-left: 0.25rem;
            transition: transform 0.3s;
        }

        .nav-menu .has-submenu:hover>a::after {
            transform: rotate(180deg);
        }

        /* Submenú desplegable */
        .submenu {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            min-width: 220px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .has-submenu:hover .submenu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .submenu li {
            display: block;
        }

        .submenu a {
            padding: 0.75rem 1.25rem;
            border-bottom: none;
            border-radius: 0;
            font-size: 0.875rem;
        }

        .submenu a:first-child {
            border-radius: 8px 8px 0 0;
        }

        .submenu a:last-child {
            border-radius: 0 0 8px 8px;
        }

        .submenu a:hover {
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-magenta-light));
            transform: translateX(5px);
        }

        .nav-icon {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        /* Botón hamburguesa para móvil/tablet */
        .hamburger-btn {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 8px;
            transition: background 0.3s;
        }

        .hamburger-btn:hover {
            background: var(--surface-hover);
        }

        .hamburger-btn span {
            width: 24px;
            height: 3px;
            background: var(--text-primary);
            border-radius: 2px;
            transition: all 0.3s;
        }

        .hamburger-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(7px, 7px);
        }

        .hamburger-btn.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        /* Overlay oscuro cuando el menú móvil está abierto */
        .menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 98;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .menu-overlay.active {
            display: block;
            opacity: 1;
        }

        /* Contenedor principal */
        .main-container {
            padding: 0.5rem 0.5rem !important;
            max-width: 100% !important;
            margin: 0 !important;
            width: 100% !important;
        }

        /* Tarjetas de estadísticas con efectos tech */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .stat-card {
            background: var(--surface);
            padding: 1.75rem;
            border-radius: 16px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-md);
            transition: all 0.4s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--winoa-green), var(--winoa-green-dark));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .stat-card::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(89, 216, 143, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-colored);
            border-color: var(--winoa-green);
        }

        .stat-card:hover::before {
            opacity: 1;
        }

        .stat-card:hover::after {
            opacity: 1;
        }

        .stat-card.orange::before {
            background: linear-gradient(90deg, var(--winoa-orange), #d94d1a);
        }

        .stat-card.orange::after {
            background: radial-gradient(circle, rgba(241, 90, 36, 0.1) 0%, transparent 70%);
        }

        .stat-card.orange:hover {
            border-color: var(--winoa-orange);
            box-shadow: 0 8px 24px rgba(241, 90, 36, 0.15);
        }

        .stat-card.blue::before {
            background: linear-gradient(90deg, var(--winoa-dark-blue), #152055);
        }

        .stat-card.blue::after {
            background: radial-gradient(circle, rgba(30, 46, 108, 0.1) 0%, transparent 70%);
        }

        .stat-card.blue:hover {
            border-color: var(--winoa-dark-blue);
            box-shadow: 0 8px 24px rgba(30, 46, 108, 0.15);
        }

        .stat-card.magenta::before {
            background: linear-gradient(90deg, var(--winoa-magenta), #7a0965);
        }

        .stat-card.magenta::after {
            background: radial-gradient(circle, rgba(160, 12, 132, 0.1) 0%, transparent 70%);
        }

        .stat-card.magenta:hover {
            border-color: var(--winoa-magenta);
            box-shadow: 0 8px 24px rgba(160, 12, 132, 0.15);
        }

        .stat-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 1.25rem;
            position: relative;
            z-index: 1;
        }

        .stat-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-green));
            color: var(--winoa-green-dark);
            box-shadow: 0 4px 12px var(--winoa-green-glow);
            transition: transform 0.3s;
        }

        .stat-card:hover .stat-icon {
            transform: rotate(10deg) scale(1.1);
        }

        .stat-card.orange .stat-icon {
            background: linear-gradient(135deg, var(--winoa-orange-light), var(--winoa-orange));
            color: white;
            box-shadow: 0 4px 12px var(--winoa-orange-glow);
        }

        .stat-card.blue .stat-icon {
            background: linear-gradient(135deg, var(--winoa-blue-light), var(--winoa-dark-blue));
            color: white;
            box-shadow: 0 4px 12px rgba(30, 46, 108, 0.3);
        }

        .stat-card.magenta .stat-icon {
            background: linear-gradient(135deg, var(--winoa-magenta-light), var(--winoa-magenta));
            color: white;
            box-shadow: 0 4px 12px rgba(160, 12, 132, 0.3);
        }

        .stat-content {
            flex: 1;
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }

        .stat-change {
            font-size: 0.85rem;
            color: var(--winoa-green-dark);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .stat-change.negative {
            color: var(--winoa-orange);
        }

        /* Sección de contenido */
        .content-section {
            background: var(--surface);
            border-radius: 16px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-md);
            overflow: hidden;
            margin-bottom: 2rem;
        }

        .section-header {
            padding: 2rem 2.5rem;
            background: linear-gradient(135deg, rgba(89, 216, 143, 0.03), rgba(160, 12, 132, 0.02));
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .section-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.3px;
            position: relative;
            padding-left: 1rem;
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 70%;
            background: linear-gradient(180deg, var(--winoa-green), var(--winoa-magenta));
            border-radius: 2px;
        }

        .section-actions {
            display: flex;
            gap: 0.75rem;
        }

        .btn {
            padding: 0.7rem 1.6rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.875rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: var(--shadow-sm);
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.4s, height 0.4s;
        }

        .btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--winoa-green), var(--winoa-green-dark));
            color: white;
            box-shadow: 0 4px 12px var(--winoa-green-glow);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--winoa-green-glow);
        }

        .btn-secondary {
            background: var(--surface);
            color: var(--text-primary);
            border: 2px solid var(--border);
        }

        .btn-secondary:hover {
            background: var(--surface-hover);
            border-color: var(--winoa-green);
            transform: translateY(-2px);
        }

        /* Filtros modernos */
        .filters-bar {
            padding: 1.5rem 2.5rem;
            background: linear-gradient(135deg, var(--background), #f5fffe);
            border-bottom: 1px solid var(--border);
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .search-box {
            flex: 1;
            min-width: 280px;
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 0.8rem 1rem 0.8rem 2.75rem;
            border: 2px solid var(--border);
            border-radius: 50px;
            font-size: 0.9rem;
            transition: all 0.3s;
            background: var(--surface);
            color: var(--text-primary);
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--winoa-green);
            box-shadow: 0 0 0 4px var(--winoa-green-glow);
        }

        .search-box::before {
            content: '🔍';
            position: absolute;
            left: 1.1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1rem;
            opacity: 0.6;
        }

        .filter-group {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        select {
            padding: 0.8rem 1.25rem;
            border: 2px solid var(--border);
            border-radius: 50px;
            font-size: 0.875rem;
            background: var(--surface);
            cursor: pointer;
            transition: all 0.3s;
            color: var(--text-primary);
            font-weight: 500;
        }

        select:focus {
            outline: none;
            border-color: var(--winoa-green);
            box-shadow: 0 0 0 4px var(--winoa-green-glow);
        }

        select:hover {
            border-color: var(--text-secondary);
        }

        /* Tabla moderna */
        .table-container {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        thead {
            background: linear-gradient(135deg, var(--background), #f8fffe);
        }

        th {
            padding: 1.25rem 2rem;
            text-align: left;
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 2px solid var(--border);
        }

        tbody tr {
            border-bottom: 1px solid var(--border-light);
            transition: all 0.2s;
        }

        tbody tr:hover {
            background: linear-gradient(135deg, rgba(89, 216, 143, 0.03), rgba(160, 12, 132, 0.02));
        }

        tbody tr:last-child {
            border-bottom: none;
        }

        td {
            padding: 1.25rem 2rem;
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        td strong {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Badges modernos con gradientes */
        .badge {
            padding: 0.4rem 0.9rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            display: inline-block;
            letter-spacing: 0.3px;
            box-shadow: var(--shadow-sm);
            min-width: 85px;
            text-align: center;
        }

        .badge-abierta {
            background: var(--winoa-blue-light);
            color: var(--winoa-dark-blue);
            border: 1.5px solid var(--winoa-dark-blue);
        }

        .badge-asignada {
            background: #c5cae9;
            color: var(--winoa-dark-blue);
            border: 1.5px solid var(--winoa-dark-blue);
        }

        .badge-terminada {
            background: #f3e5f5;
            color: #6a1b9a;
            border: 1.5px solid #6a1b9a;
        }

        .badge-cancelada {
            background: #ffebee;
            color: #c62828;
            border: 1.5px solid #c62828;
        }

        .badge-cerrada {
            background: #d4f4dd;
            color: #45b874;
            border: 1.5px solid #45b874;
        }

        .badge-archivada {
            background: #e0e0e0;
            color: #616161;
            border: 1.5px solid #9e9e9e;
        }

        .badge-alta {
            background: linear-gradient(135deg, var(--winoa-orange), #d94d1a);
            color: white;
            font-weight: 700;
            box-shadow: 0 2px 8px var(--winoa-orange-glow);
        }

        .badge-media {
            background: linear-gradient(135deg, #ffd93d, #f5c000);
            color: #7a5b00;
            border: 1px solid #d68900;
        }

        .badge-baja {
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-green));
            color: white;
        }

        /* Acciones de fila */
        .row-actions {
            display: flex;
            gap: 0.5rem;
        }

        .action-btn {
            padding: 0.5rem 0.8rem;
            border: 1px solid var(--border);
            background: var(--surface);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .action-btn:hover {
            background: linear-gradient(135deg, var(--winoa-green-light), var(--winoa-magenta-light));
            color: var(--winoa-green-dark);
            border-color: var(--winoa-green);
            transform: scale(1.1);
        }

        /* Paginación */
        .pagination {
            padding: 1.75rem 2.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--border);
            background: linear-gradient(135deg, var(--background), #f8fffe);
        }

        .pagination-info {
            color: var(--text-secondary);
            font-size: 0.875rem;
            font-weight: 500;
        }

        .pagination-controls {
            display: flex;
            gap: 0.5rem;
        }

        .page-btn {
            padding: 0.6rem 1rem;
            border: 1px solid var(--border);
            background: var(--surface);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            font-size: 0.875rem;
            color: var(--text-primary);
        }

        .page-btn:hover {
            border-color: var(--winoa-green);
            color: var(--winoa-green);
            background: var(--winoa-green-light);
            transform: translateY(-2px);
        }

        .page-btn.active {
            background: linear-gradient(135deg, var(--winoa-green), var(--winoa-green-dark));
            color: white;
            border-color: var(--winoa-green);
            box-shadow: 0 4px 12px var(--winoa-green-glow);
        }

        /* Sección de actividad */
        .activity-list {
            padding: 2rem 2.5rem;
        }

        .activity-item {
            padding: 1.25rem;
            border-left: 3px solid var(--winoa-green);
            background: linear-gradient(90deg, var(--winoa-green-light), transparent);
            border-radius: 8px;
            margin-bottom: 1rem;
            transition: all 0.3s;
        }

        .activity-item:hover {
            background: linear-gradient(90deg, var(--winoa-green-light), rgba(160, 12, 132, 0.05));
            transform: translateX(6px);
            box-shadow: var(--shadow-md);
        }

        .activity-item.orange {
            border-left-color: var(--winoa-orange);
            background: linear-gradient(90deg, var(--winoa-orange-light), transparent);
        }

        .activity-item.orange:hover {
            background: linear-gradient(90deg, var(--winoa-orange-light), rgba(160, 12, 132, 0.05));
        }

        .activity-item.blue {
            border-left-color: var(--winoa-dark-blue);
            background: linear-gradient(90deg, var(--winoa-blue-light), transparent);
        }

        .activity-item.blue:hover {
            background: linear-gradient(90deg, var(--winoa-blue-light), rgba(160, 12, 132, 0.05));
        }

        .activity-item strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .activity-time {
            color: var(--text-tertiary);
            font-size: 0.85rem;
        }

        /* Footer con gradiente */
        .footer {
            text-align: center;
            padding: 3rem 2rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
            background: linear-gradient(135deg, rgba(89, 216, 143, 0.05), rgba(160, 12, 132, 0.05));
            border-top: 1px solid var(--border);
        }

        .footer strong {
            background: linear-gradient(135deg, var(--winoa-green), var(--winoa-magenta));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
        }

        .footer-version {
            margin-top: 0.5rem;
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }

        /* Responsive - Móvil y Tablet */
        @media (max-width: 1024px) {
            .header-container {
                padding: 1rem 1.5rem;
            }

            /* Mostrar botón hamburguesa */
            .hamburger-btn {
                display: flex;
            }

            /* Ocultar menú principal y convertirlo en menú lateral */
            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 300px;
                height: 100vh;
                background: var(--surface);
                box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
                z-index: 99;
                padding: 2rem 0;
                transition: right 0.3s ease;
                overflow-y: auto;
                flex: none;
            }

            .nav-menu.active {
                right: 0;
            }

            .nav-menu ul {
                flex-direction: column;
                gap: 0;
                align-items: stretch;
            }

            .nav-menu li {
                width: 100%;
            }

            .nav-menu a {
                padding: 1rem 1.5rem;
                border-radius: 0;
                justify-content: flex-start;
            }

            .nav-menu a.active {
                border-left: 4px solid var(--winoa-green);
                background: var(--winoa-green-light);
            }

            /* Submenú en móvil */
            .submenu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
                box-shadow: none;
                border: none;
                border-radius: 0;
                background: var(--background);
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
            }

            .has-submenu.open .submenu {
                max-height: 300px;
            }

            .submenu a {
                padding-left: 3rem;
                font-size: 0.85rem;
            }

            .nav-menu .has-submenu>a::after {
                margin-left: auto;
            }

            .has-submenu.open>a::after {
                transform: rotate(180deg);
            }
        }

        @media (max-width: 768px) {
            .main-container {
                padding: 1.5rem 0.75rem;
            }

            .nav-menu {
                width: 280px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .filters-bar {
                flex-direction: column;
                padding: 1.25rem 1.5rem;
            }

            .search-box {
                min-width: 100%;
            }

            .section-header {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
                padding: 1.5rem;
            }

            table {
                font-size: 0.85rem;
            }

            th,
            td {
                padding: 1rem;
            }
        }

        </style>

        /* Flash messages */
        .flash-messages {
            position: fixed;
            top: 80px;
            right: 2rem;
            z-index: 1000;
            max-width: 400px;
        }

        .flash-message {
            padding: 1rem 1.25rem;
            border-radius: 12px;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            box-shadow: var(--shadow-lg);
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .flash-success {
            background: var(--winoa-green-light);
            color: var(--winoa-green-dark);
            border: 1px solid var(--winoa-green);
        }

        .flash-danger {
            background: var(--winoa-orange-light);
            color: var(--winoa-orange);
            border: 1px solid var(--winoa-orange);
        }

        .flash-warning {
            background: #fff4e6;
            color: #f59e0b;
            border: 1px solid #f59e0b;
        }

        .flash-info {
            background: var(--winoa-blue-light);
            color: var(--winoa-dark-blue);
            border: 1px solid var(--winoa-dark-blue);
        }

        .flash-message button {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: currentColor;
            opacity: 0.6;
            transition: opacity 0.3s;
        }

        .flash-message button:hover {
            opacity: 1;
        }

        /* Footer */
        .footer-container {
            display: none; /* Oculto temporalmente */
            background: var(--surface);
            border-top: 1px solid var(--border);
            padding: 2rem 2.5rem;
            margin-top: 4rem;
        }

        .footer-content {
            max-width: 1850px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.875rem;
            color: var(--text-secondary);
        }

        .footer-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .footer-separator {
            opacity: 0.3;
        }

        /* ===== BOTÓN IMPRIMIR ESTÁNDAR ===== */
        /* IMPORTANTE: Todos los botones de imprimir deben usar esta clase .btn-print */
        /* Estilo IDÉNTICO a .btn para misma altura */
        .btn-print {
            padding: 0.6rem 1.5rem;
            background: linear-gradient(135deg, var(--winoa-magenta), var(--winoa-magenta-dark));
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
        }

        .btn-print:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(160, 12, 132, 0.4);
            color: white;
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .footer-left {
                flex-direction: column;
                gap: 0.5rem;
            }

            .footer-separator {
                display: none;
            }

            .flash-messages {
                right: 1rem;
                left: 1rem;
                max-width: none;
            }
        }

        /* ============================================
   MODALS
   ============================================ */

        /* Overlay del modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.2s ease-in-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* Contenido del modal */
        .modal-content {
            background: var(--surface);
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from {
                transform: translateY(-30px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Header del modal */
        .modal-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .modal-header h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Body del modal */
        .modal-body {
            padding: 1.5rem;
        }

        /* Footer del modal */
        .modal-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                max-height: 95vh;
            }

            .modal-header,
            .modal-body,
            .modal-footer {
                padding: 1rem;
            }
        }

        /* ============================================
   PAGE HEADER Y TITULO - ESTILO UNIFICADO
   ============================================ */

        /* Header de página sticky */
        .page-header {
            position: sticky;
            top: 75px;
            z-index: 95;
            background: var(--background);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            padding: 0.5rem 0;
            border-bottom: 2px solid var(--border);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        /* Título de página con degradado */
        .page-title {
            font-size: 1.2rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--winoa-green), var(--winoa-magenta));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin: 0;
            flex-shrink: 0;
            white-space: nowrap;
        }

        /* Icono del título - sin degradado */
        .page-title-icon {
            background: none;
            -webkit-text-fill-color: initial;
            color: inherit;
        }

        /* ============================================================================
   MOBILE ELEMENTS - Hidden on Desktop
   These elements are shown only on mobile via mobile.css
   ============================================================================ */
        .mobile-bottom-nav,
        .mobile-full-menu,
        .mobile-menu-overlay,
        .mobile-filters-toggle {
            display: none !important;
        }

        /* ============================================================================
           SKELETON LOADERS
           Placeholder animado mientras carga contenido
           ============================================================================ */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s infinite;
            border-radius: 4px;
        }

        .skeleton-text {
            height: 1em;
            margin: 0.25em 0;
        }

        .skeleton-text-sm {
            height: 0.8em;
            width: 60%;
        }

        .skeleton-text-lg {
            height: 1.2em;
            width: 80%;
        }

        .skeleton-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .skeleton-badge {
            width: 60px;
            height: 22px;
            border-radius: 12px;
        }

        .skeleton-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-light);
        }

        .skeleton-cell {
            flex: 1;
        }

        .skeleton-table {
            width: 100%;
        }

        @keyframes skeleton-shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Skeleton visible solo mientras carga */
        .skeleton-container {
            display: none;
        }

        .is-loading .skeleton-container {
            display: block;
        }

        .is-loading .content-container {
            display: none;
        }