/* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #f5f7fa;
            color: #1a1f36;
        }

        /* ===== HEADER SUPERIOR ===== */
        .main-header {
            background: #ffffff;
            border-bottom: 1px solid #eef2f8;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        /* Header desktop (visible en pantallas grandes) */
        .header-desktop {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 24px;
            max-width: 1280px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo-img {
            height: 40px;
            width: auto;
        }

        .header-actions {
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .icon-btn {
            background: none;
            border: none;
            font-size: 1.3rem;
            cursor: pointer;
            color: #334155;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .icon-btn:hover {
            background: #f1f5f9;
            color: #ff6b4a;
        }

        /* Header móvil (oculto en desktop, visible en móvil) */
        .header-mobile {
            display: none;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: #ffffff;
            border-bottom: 1px solid #eef2f8;
        }

        .header-mobile .logo-img {
            height: 36px;
        }

        .header-mobile-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        /* Título de página */
        .page-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1a1f36;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .page-title i {
            color: #ff6b4a;
            font-size: 1.8rem;
        }

        /* ===== CONTENEDOR PRINCIPAL ===== */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 24px 24px 80px 24px;
        }

        /* ===== NOTIFICACIÓN ===== */
        .notification {
            display: none;
            margin-bottom: 24px;
            padding: 16px 20px;
            border-radius: 16px;
            animation: fadeIn 0.3s ease;
        }

        .notification.success {
            background: #ecfdf5;
            border: 1px solid #10b981;
            color: #065f46;
        }

        .notification.error {
            background: #fef2f2;
            border: 1px solid #ef4444;
            color: #991b1b;
        }

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

        /* ===== GRID ===== */
        .grid-2cols {
            display: grid;
            grid-template-columns: 1fr;
            gap: 32px;
        }

        @media (min-width: 1024px) {
            .grid-2cols {
                grid-template-columns: 1fr 2fr;
            }
        }

        /* ===== FORMULARIO ===== */
        .form-card {
            background: #ffffff;
            border-radius: 24px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
            border: 1px solid #eef2f8;
            overflow: hidden;
            position: sticky;
            top: 100px;
        }

        .form-header {
            background: linear-gradient(135deg, #ff6b4a 0%, #ff9a3c 100%);
            padding: 20px 24px;
        }

        .form-header h2 {
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
        }

        .form-body {
            padding: 24px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 500;
            color: #475569;
            margin-bottom: 6px;
        }

        .form-group select,
        .form-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            font-size: 0.9rem;
            background: #f8fafc;
            transition: all 0.2s;
            font-family: inherit;
        }

        .form-group select:focus,
        .form-group input:focus {
            outline: none;
            border-color: #ff6b4a;
            box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
            background: white;
        }

        .price-group {
            display: flex;
            gap: 12px;
        }

        .price-group input {
            flex: 1;
        }

        .form-actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
        }

        .btn-primary {
            flex: 1;
            padding: 12px 24px;
            background: #ff6b4a;
            color: white;
            border: none;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-primary:hover {
            background: #e55a3b;
            transform: translateY(-1px);
        }

        .btn-secondary {
            padding: 12px 24px;
            background: #f1f5f9;
            color: #475569;
            border: none;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-secondary:hover {
            background: #e2e8f0;
        }

        /* ===== LISTA DE PEDIDOS ===== */
        .pedidos-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 12px;
        }

        .pedidos-header h2 {
            font-size: 1.3rem;
            font-weight: 600;
            color: #1a1f36;
        }

        .total-badge {
            background: #f1f5f9;
            padding: 6px 14px;
            border-radius: 40px;
            font-size: 0.8rem;
            font-weight: 500;
            color: #475569;
        }

        .pedidos-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        @media (min-width: 768px) {
            .pedidos-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .pedido-card {
            background: white;
            border-radius: 20px;
            border: 1px solid #eef2f8;
            transition: all 0.2s ease;
            overflow: hidden;
        }

        .pedido-card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }

        .pedido-card-body {
            padding: 20px;
        }

        .pedido-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }

        .pedido-id {
            font-size: 0.7rem;
            font-weight: 500;
            color: #94a3b8;
            letter-spacing: 0.5px;
        }

        .pedido-categoria {
            font-size: 1rem;
            font-weight: 600;
            color: #1a1f36;
            margin-top: 4px;
        }

        .estado-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .estado-badge.nuevo {
            background: #dcfce7;
            color: #166534;
        }

        .estado-badge.conservado {
            background: #dbeafe;
            color: #1e40af;
        }

        .pedido-info {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
        }

        .pedido-info p {
            font-size: 0.85rem;
            color: #64748b;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .pedido-info i {
            width: 20px;
            color: #94a3b8;
        }

        .pedido-card-footer {
            background: #f8fafc;
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #eef2f8;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
        }

        .action-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 40px;
            transition: all 0.2s;
            font-size: 1.1rem;
        }

        .action-btn.edit {
            color: #ff6b4a;
        }

        .action-btn.edit:hover {
            background: #fff5f0;
        }

        .action-btn.delete {
            color: #ef4444;
        }

        .action-btn.delete:hover {
            background: #fef2f2;
        }

        .estado-select {
            padding: 6px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 30px;
            font-size: 0.75rem;
            background: white;
            cursor: pointer;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            background: white;
            border-radius: 24px;
            border: 2px dashed #e2e8f0;
        }

        .empty-state i {
            font-size: 3rem;
            color: #cbd5e1;
            margin-bottom: 16px;
        }

        .empty-state p {
            color: #64748b;
            font-size: 0.9rem;
        }

        /* Atributos dinámicos */
        #cont-atributos {
            margin-top: 16px;
        }

        .attr-input {
            margin-bottom: 12px;
        }

        .attr-input label {
            font-size: 0.8rem;
            font-weight: 500;
            color: #475569;
            margin-bottom: 4px;
            display: block;
        }

        .attr-input input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.85rem;
            background: #f8fafc;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .header-desktop {
                display: none;
            }
            
            .header-mobile {
                display: flex;
            }
            
            .container {
                padding: 16px 16px 80px 16px;
            }
            
            .page-title {
                font-size: 1.2rem;
                margin-bottom: 20px;
            }
            
            .form-card {
                position: relative;
                top: 0;
            }
            
            .pedidos-header h2 {
                font-size: 1.1rem;
            }
        }

        /* Utilidades */
        .hidden {
            display: none !important;
        }
