        :root {
            --primary-color: #1a73e8;
            --primary-dark: #0d47a1;
            --accent-color: #4285f4;
            --secondary-color: #2c3e50;
            --text-color: #202124;
            --text-secondary: #5f6368;
            --light-bg: #f8f9fa;
            --success-color: #34a853;
            --error-color: #ea4335;
            --warning-color: #fbbc05;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 2px 10px rgba(0,0,0,0.04);
            --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 5px 20px rgba(0,0,0,0.05);
            --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            --font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            --radius-sm: 6px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-family);
            color: var(--text-color);
            background-color: var(--light-bg);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            scroll-behavior: smooth;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        /* Admin Settings Button */
        .admin-settings {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 2100;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition-normal);
            box-shadow: var(--shadow-md);
        }

        .admin-settings:hover {
            transform: scale(1.1) rotate(90deg);
            box-shadow: var(--shadow-lg);
            background: var(--primary-color);
            color: white;
        }

        .admin-settings i {
            font-size: 1.2rem;
            color: var(--text-secondary);
            transition: var(--transition-normal);
        }

        .admin-settings:hover i {
            color: white;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            color: white;
            box-shadow: var(--shadow-lg);
            position: relative;
            z-index: 100; /* Reducir z-index */
            padding: 1.5rem 0;
            overflow: visible; /* Cambiar de hidden a visible */
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
            pointer-events: none;
        }

        .header-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            position: relative;
        }

        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            animation: fadeInDown 0.8s ease-out;
        }

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

        .logo {
            height: 60px;
            width: 60px;
            margin-right: 1rem;
            transition: var(--transition-normal);
            object-fit: contain;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
        }

        .logo:hover {
            transform: scale(1.05) rotate(5deg);
        }

        .header h1 {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: 1px;
            margin: 0;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        /* Menu Toggle Button */
        .menu-toggle {
            display: none;
            flex-direction: column;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            padding: 12px;
            position: absolute;
            top: 1rem;
            right: 1rem;
            z-index: 1001;
            border-radius: var(--radius-md);
            backdrop-filter: blur(10px);
            transition: var(--transition-normal);
        }

        .menu-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
        }

        .menu-toggle .bar {
            width: 25px;
            height: 3px;
            background-color: white;
            margin: 3px 0;
            transition: var(--transition-normal);
            border-radius: 2px;
        }

        .menu-toggle.active .bar:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

        .menu-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active .bar:nth-child(3) {
            transform: rotate(45deg) translate(-5px, -6px);
        }

        /* Menu Navigation con Preview */
        .menu {
            width: 100%;
            display: block;
            position: relative;
            z-index: 2500;
        }

        .menu-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
        }

        .menu-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            width: 100%;
            flex-wrap: nowrap;
        }

        .menu-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            background-color: rgba(255, 255, 255, 0.15);
            border-radius: var(--radius-md);
            padding: 12px 8px;
            width: 22%;
            min-width: 180px;
            max-width: 220px;
            height: 70px;
            text-align: center;
            font-weight: 500;
            font-size: 0.85rem;
            transition: var(--transition-normal);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            flex-shrink: 0;
            position: relative;
            cursor: pointer;
        }

        .menu-item i {
            font-size: 1.2rem;
            margin-bottom: 8px;
            transition: transform 0.3s;
        }

        .menu-item span {
            font-size: 0.85rem;
            line-height: 1.2;
            word-break: break-word;
            hyphens: auto;
        }

        .menu-item:hover,
        .menu-item.active {
            background-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .menu-item:hover i {
            transform: scale(1.1);
        }

        .menu-item.active {
            background-color: rgba(255, 255, 255, 0.3);
            font-weight: 600;
        }

        /* Preview Image System */
        .preview-container {
            position: fixed; /* Cambiado de absolute a fixed */
            top: 180px; /* Posición fija desde arriba */
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999; /* Z-index máximo */
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            margin-top: 0; /* Remover margin superior */
        }

        .preview-container.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }

        .preview-image {
            background: white;
            border-radius: var(--radius-lg);
            box-shadow: 
                0 0 0 1px rgba(0, 0, 0, 0.05),
                0 30px 60px rgba(0, 0, 0, 0.3), 
                0 15px 30px rgba(0, 0, 0, 0.2);
            padding: 1.5rem;
            border: 2px solid rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            position: relative;
            max-width: 400px;
            animation: slideIn 0.4s ease-out;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-10px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .preview-image::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid white;
        }

        .preview-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #e1e5e9;
        }

        .preview-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
        }

        .preview-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-color);
            margin: 0;
        }

        .preview-document {
            background: #f8f9fa;
            border: 1px solid #e1e5e9;
            border-radius: var(--radius-md);
            padding: 1rem;
            margin-bottom: 1rem;
            position: relative;
            overflow: hidden;
        }

        .preview-document::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
        }

        .document-content {
            font-family: 'Times New Roman', serif;
            font-size: 0.75rem;
            line-height: 1.4;
            color: #333;
        }

        .document-header {
            text-align: center;
            font-weight: bold;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #ddd;
        }

        .document-field {
            margin: 0.5rem 0;
            display: flex;
            gap: 0.5rem;
        }

        .field-label {
            font-weight: bold;
            min-width: 60px;
        }

        .field-value {
            flex: 1;
            border-bottom: 1px dotted #ccc;
            color: #666;
        }

        .preview-description {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.4;
            margin-bottom: 1rem;
        }

        .preview-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .preview-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.1);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .preview-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .format-type-badge {
            background: var(--primary-light);
            color: var(--primary-color);
            padding: 0.25rem 0.5rem;
            border-radius: var(--radius-sm);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .click-hint {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-style: italic;
        }

        /* Main Content - Improved */
        .main-content {
            flex: 1;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 4rem 1rem;
            position: relative;
            overflow: hidden;
            z-index: auto; /* Remover z-index específico */
        }

        .main-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
            pointer-events: none;
        }

        .main-content::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: float 20s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes float {
            0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
            33% { transform: translate(-30%, -60%) rotate(120deg); }
            66% { transform: translate(-70%, -40%) rotate(240deg); }
        }

        /* Enhanced Login Container */
        .login-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            padding: 3rem;
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
            width: 100%;
            max-width: 450px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            animation: slideUp 0.8s ease-out;
        }

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

        .login-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        }

        .login-header {
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .login-icon {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: white;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            box-shadow: var(--shadow-lg);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
            100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
        }

        .login-container h1 {
            color: var(--text-color);
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .login-subtitle {
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 400;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.75rem;
            color: var(--text-color);
            font-weight: 600;
            font-size: 0.95rem;
        }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 1.1rem;
            transition: var(--transition-normal);
            z-index: 2;
        }

        .form-group input[type="email"] {
            width: 100%;
            padding: 1rem 1rem 1rem 3rem;
            border: 2px solid #e1e5e9;
            border-radius: var(--radius-md);
            font-size: 16px;
            font-family: var(--font-family);
            transition: var(--transition-normal);
            background: white;
            outline: none;
        }

        .form-group input[type="email"]:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
        }

        .form-group input[type="email"]:focus + .input-icon {
            color: var(--primary-color);
        }

        .btn {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 16px;
            font-family: var(--font-family);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-normal);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }

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

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn:active {
            transform: translateY(0);
        }

        .alert {
            padding: 1rem;
            margin-bottom: 1.5rem;
            border-radius: var(--radius-md);
            text-align: center;
            animation: slideDown 0.4s ease-out;
            font-weight: 500;
            border: 1px solid transparent;
        }

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

        .alert-error {
            background-color: rgba(234, 67, 53, 0.1);
            color: var(--error-color);
            border-color: rgba(234, 67, 53, 0.2);
        }

        .alert-success {
            background-color: rgba(52, 168, 83, 0.1);
            color: var(--success-color);
            border-color: rgba(52, 168, 83, 0.2);
        }

        /* Security Features */
        .security-features {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #e1e5e9;
        }

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

        .security-item {
            display: flex;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .security-item i {
            color: var(--success-color);
            margin-right: 0.5rem;
            font-size: 0.9rem;
        }

        /* Enhanced Footer */
        .footer {
            background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
            color: white;
            padding: 4rem 0 2rem;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
            background-size: 200% 100%;
            animation: gradientMove 3s ease-in-out infinite;
        }

        @keyframes gradientMove {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

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

        .footer-section h3 {
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            font-weight: 700;
            position: relative;
            padding-bottom: 1rem;
            color: white;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
            border-radius: 2px;
        }

        .contact-info p, .footer-info p {
            margin: 1rem 0;
            display: flex;
            align-items: center;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .contact-info a, .footer a {
            color: #e1e5e9;
            text-decoration: none;
            transition: var(--transition-normal);
            position: relative;
        }

        .contact-info a:hover, .footer a:hover {
            color: var(--accent-color);
            transform: translateX(3px);
        }

        .contact-info i, .footer-info i {
            margin-right: 1rem;
            width: 1.5rem;
            text-align: center;
            color: var(--accent-color);
            font-size: 1.1rem;
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: var(--transition-normal);
            font-size: 1.2rem;
            border: 2px solid transparent;
        }

        .social-icon:hover {
            background: var(--primary-color);
            transform: translateY(-3px) scale(1.1);
            box-shadow: var(--shadow-lg);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .footer-info {
            grid-column: span 2;
        }

        .footer-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-item {
            text-align: center;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent-color);
            display: block;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #e1e5e9;
            margin-top: 0.5rem;
        }

        .copyright {
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 2rem;
            margin-top: 2rem;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Responsive Design - Manteniendo tu configuración del menú */
        @media (min-width: 769px) {
            .menu-wrapper {
                max-width: 1100px;
            }
            
            .menu-row {
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                gap: 12px;
                justify-content: center;
            }
            
            .menu-item {
                width: 22%;
                min-width: 180px;
                max-width: 220px;
                flex-shrink: 0;
            }
        }

        @media (max-width: 1200px) and (min-width: 769px) {
            .menu-item {
                font-size: 0.8rem;
                min-width: 160px;
                max-width: 200px;
            }
            
            .menu-item span {
                font-size: 0.75rem;
            }
        }

        @media (max-width: 1000px) and (min-width: 769px) {
            .menu-item {
                font-size: 0.75rem;
                min-width: 140px;
                max-width: 180px;
                padding: 10px 6px;
            }
            
            .menu-item span {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 768px) {
            .admin-settings {
                top: 15px;
                right: 15px;
                width: 45px;
                height: 45px;
            }

            .menu-toggle {
                display: flex;
            }
            
            .menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
                box-shadow: var(--shadow-lg);
                z-index: 2500;
            }
            
            .menu.active {
                display: block;
            }
            
            .menu-wrapper {
                padding: 1rem;
                max-width: none;
            }
            
            .menu-row {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .menu-item {
                width: calc(50% - 4px);
                min-width: auto;
                max-width: none;
                padding: 12px 8px;
                min-height: 65px;
                font-size: 0.8rem;
            }
            
            .menu-item span {
                font-size: 0.75rem;
            }
            
            .header h1 {
                font-size: 1.4rem;
            }

            .login-container {
                padding: 2rem;
                margin: 0 0.5rem;
                border-radius: var(--radius-lg);
            }

            .login-container h1 {
                font-size: 1.6rem;
            }

            .security-grid {
                grid-template-columns: 1fr;
            }

            .footer-info {
                grid-column: span 1;
            }

            .footer-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            
            .preview-container {
                position: fixed;
                top: 120px; /* Ajustar para móvil */
                left: 1rem;
                right: 1rem;
                transform: none;
                z-index: 9999;
            }

            .preview-container.show {
                transform: none;
            }

            .preview-image {
                max-width: none;
                margin: 0;
            }
        }

        @media (max-width: 480px) {
            .header h1 {
                font-size: 1.2rem;
            }
            
            .logo {
                height: 50px;
                width: 50px;
            }

            .login-container {
                padding: 1.5rem;
                margin: 0 0.25rem;
            }

            .login-container h1 {
                font-size: 1.4rem;
            }
            
            .menu-item {
                width: 100%;
                padding: 12px;
                min-height: 55px;
                font-size: 0.8rem;
            }
            
            .menu-item i {
                font-size: 1rem;
            }
            
            .menu-item span {
                font-size: 0.75rem;
            }
            
            .menu-row {
                flex-direction: column;
                gap: 6px;
            }

            .footer-stats {
                grid-template-columns: 1fr;
            }
            .preview-container {
                top: 100px;
                left: 0.5rem;
                right: 0.5rem;
            }
        }

        /* Accesibilidad */
        button:focus, a:focus, input:focus {
            outline: 3px solid rgba(66, 133, 244, 0.4);
            outline-offset: 2px;
        }

        /* Loading States */
        .btn.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .btn.loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }